Skip to content

Commit

Permalink
Fixes #1576: local.drushrc.php not created for multisites. (#1596)
Browse files Browse the repository at this point in the history
  • Loading branch information
grasmash authored Jun 5, 2017
1 parent 09c277d commit 5efdffa
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Robo/Commands/Setup/SettingsCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ public function generateSiteConfigFiles() {
->setVerbosityThreshold(VerbosityThresholdInterface::VERBOSITY_VERBOSE)
->run();

$default_multisite_dir = $this->getConfigValue('docroot') . "/sites/default";
$default_project_default_settings_file = "$default_multisite_dir/default.settings.php";

$multisites = $this->getConfigValue('multisites');
foreach ($multisites as $multisite) {
// Generate settings.php.
Expand All @@ -56,6 +59,7 @@ public function generateSiteConfigFiles() {
$this->taskFilesystemStack()
->chmod($multisite_dir, 0777)
->chmod($project_settings_file, 0777)
->copy($default_project_default_settings_file, $project_default_settings_file)
->copy($project_default_settings_file, $project_settings_file)
->copy($blt_local_settings_file, $default_local_settings_file)
->copy($default_local_settings_file, $project_local_settings_file)
Expand Down

0 comments on commit 5efdffa

Please sign in to comment.