Skip to content

Commit

Permalink
BLT-2466: updating 9.x update hook to correct alias issues. (#2485)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikemadison13 authored and grasmash committed Jan 23, 2018
1 parent efe807a commit 7cdd6f0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Update/Updates.php
Original file line number Diff line number Diff line change
Expand Up @@ -456,9 +456,11 @@ public function update_8009011() {
* )
*/
public function update_9000000() {
$this->updater->syncWithTemplate('.gitignore', TRUE);
$this->updater->moveFile('drush/site-aliases/aliases.drushrc.php', 'drush/site-aliases/legacy.aliases.drushrc.php');
$this->updater->replaceInFile('drush/site-aliases/legacy.aliases.drushrc.php', "' . drush_server_home() . '", '$HOME');
$process = new Process(
'./vendor/bin/drush site:alias-convert $(pwd)/drush/site --sources=$(pwd)/drush/site-aliases',
'./vendor/bin/drush site:alias-convert $(pwd)/drush/sites --sources=$(pwd)/drush/site-aliases',
$this->updater->getRepoRoot()
);
$process->run();
Expand Down
3 changes: 3 additions & 0 deletions template/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -128,3 +128,6 @@ atlassian-ide-plugin.xml

#NPM
npm-debug.log

# Drush 9 Checksums
drush/sites/.checksums

0 comments on commit 7cdd6f0

Please sign in to comment.