Skip to content

Commit db4fe18

Browse files
committed
Fix sites files and folders
1 parent 2b86074 commit db4fe18

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/ComposerScripts.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,18 @@ public static function postDrupalScaffold() {
7373
}
7474
}
7575

76+
// Symlink sites files and folders into the the Drupal core git repo.
77+
foreach (scandir('web/sites') as $file) {
78+
if (!file_exists("repos/drupal/sites/$file")) {
79+
static::makeSymlink("../../../web/sites/$file", "repos/drupal/sites/$file");
80+
}
81+
}
82+
foreach (scandir('web/sites/default') as $file) {
83+
if (!file_exists("repos/drupal/sites/default/$file")) {
84+
static::makeSymlink("../../../../web/sites/default/$file", "repos/drupal/sites/default/$file");
85+
}
86+
}
87+
7688
// Create folders for running tests.
7789
if (!file_exists('web/sites/simpletest')) {
7890
mkdir('web/sites/simpletest', 0777, TRUE);

0 commit comments

Comments
 (0)