Skip to content
This repository has been archived by the owner on Apr 7, 2024. It is now read-only.

Commit

Permalink
Fix uploaded_resources directory permissions (#321)
Browse files Browse the repository at this point in the history
  • Loading branch information
Clayton Liddell authored Feb 18, 2022
1 parent 9c57737 commit 31e5ea7
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/Command/InstallCommands.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit 31e5ea7

Please sign in to comment.