From 31e5ea70a25207134288ecb801bc362a351c3818 Mon Sep 17 00:00:00 2001 From: Clayton Liddell Date: Fri, 18 Feb 2022 14:43:26 -0600 Subject: [PATCH] Fix uploaded_resources directory permissions (#321) --- src/Command/InstallCommands.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/Command/InstallCommands.php b/src/Command/InstallCommands.php index 1891b350..0b8fe156 100644 --- a/src/Command/InstallCommands.php +++ b/src/Command/InstallCommands.php @@ -23,8 +23,13 @@ public function install($opts = ['existing-config' => false]) $this->standardInstallation(); } - // Workaround for https://www.drupal.org/project/drupal/issues/3091285. - $result = $this->taskExec('chmod u+w sites/default') + $result = $this->taskExecStack() + // Ensure resources directories exists and are writable. + ->exec('mkdir -p sites/default/files/uploaded_resources') + ->exec('mkdir -p sites/default/files/resources') + ->exec('chmod -R 777 sites/default/files') + // Workaround for https://www.drupal.org/project/drupal/issues/3091285. + ->exec('chmod u+w sites/default') ->dir(Util::getProjectDocroot()) ->run();