Skip to content
Snippets Groups Projects
Commit f470e8c1 authored by jurgenhaas's avatar jurgenhaas
Browse files

Fix a bug while creating initial symlinks

parent 3bf76ab5
Branches
Tags
1 merge request!25Merging develop into main
Pipeline #709444 passed
......@@ -107,7 +107,7 @@ class Handler extends BaseHandler {
// Link Drupal site's files and private directory.
foreach (['files', 'private'] as $dir) {
if (!$fs->exists($webRoot . '/sites/default/' . $dir)) {
$rel = substr($fs->makePathRelative($projectRoot . '/files/default/' . $dir, $projectRoot . '/' . $webRoot . '/sites/default/' . $dir), 3, -1);
$rel = substr($fs->makePathRelative($projectRoot . '/files/default/' . $dir, $projectRoot . '/' . $webRoot . '/sites/default'), 3, -1);
$fs->symlink($rel, $webRoot . '/sites/default/' . $dir);
$fs->chmod($webRoot . '/sites/default/' . $dir, 0775);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment