Skip to content
This repository was archived by the owner on Mar 5, 2025. It is now read-only.

Commit 5efdffa

Browse files
authored
Fixes #1576: local.drushrc.php not created for multisites. (#1596)
1 parent 09c277d commit 5efdffa

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Robo/Commands/Setup/SettingsCommand.php

+4
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ public function generateSiteConfigFiles() {
3636
->setVerbosityThreshold(VerbosityThresholdInterface::VERBOSITY_VERBOSE)
3737
->run();
3838

39+
$default_multisite_dir = $this->getConfigValue('docroot') . "/sites/default";
40+
$default_project_default_settings_file = "$default_multisite_dir/default.settings.php";
41+
3942
$multisites = $this->getConfigValue('multisites');
4043
foreach ($multisites as $multisite) {
4144
// Generate settings.php.
@@ -56,6 +59,7 @@ public function generateSiteConfigFiles() {
5659
$this->taskFilesystemStack()
5760
->chmod($multisite_dir, 0777)
5861
->chmod($project_settings_file, 0777)
62+
->copy($default_project_default_settings_file, $project_default_settings_file)
5963
->copy($project_default_settings_file, $project_settings_file)
6064
->copy($blt_local_settings_file, $default_local_settings_file)
6165
->copy($default_local_settings_file, $project_local_settings_file)

0 commit comments

Comments
 (0)