Issue #3231992: Make the staged sites/default writable before cleaning
1 unresolved thread
Merge request reports
Activity
added 3 commits
-
20a0880b...19f54310 - 2 commits from branch
project:8.x-2.x
- 2e6a1d3a - Merge branch '8.x-2.x' into 3231992-make-the-staged
-
20a0880b...19f54310 - 2 commits from branch
- Resolved by Adam G-H
- Resolved by Adam G-H
- src/ComposerStager/Cleaner.php 0 → 100644
54 $this->pathLocator = $locator; 55 } 56 57 /** 58 * {@inheritdoc} 59 */ 60 public function clean(string $stagingDir, ?ProcessOutputCallbackInterface $callback, ?int $timeout = 120): void { 61 // Ensure that the staged site directory is writable. 62 $site_dir = implode(DIRECTORY_SEPARATOR, [ 63 $stagingDir, 64 $this->pathLocator->getWebRoot() ?: '.', 65 $this->sitePath, 66 ]); 67 68 if ($this->directoryExists($site_dir)) { 69 (new Filesystem())->chmod($site_dir, 0777);
Please register or sign in to reply