diff --git a/scripts/composer/ScriptHandler.php b/scripts/composer/ScriptHandler.php index 1531a8793..27efd7c69 100644 --- a/scripts/composer/ScriptHandler.php +++ b/scripts/composer/ScriptHandler.php @@ -53,7 +53,7 @@ public static function createRequiredFiles(Event $event) { } // Create the files directory with chmod 0777 - if (!$fs->exists($drupalRoot . '/sites/default/files')) { + if (!$fs->exists($drupalRoot . '/sites/default/files') && !is_link($drupalRoot . '/sites/default/files')) { $oldmask = umask(0); $fs->mkdir($drupalRoot . '/sites/default/files', 0777); umask($oldmask);