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

#6 Rewrite htaccess files every time to stay up-to-date

parent 0e19eeff
No related branches found
No related tags found
1 merge request!6Merging develop into main
Pipeline #540661 passed
......@@ -97,8 +97,8 @@ class Handler extends BaseHandler {
$path = $projectRoot . '/' . $dir;
if (!$fs->exists($path)) {
$fs->mkdir($path);
$fs->copy($pluginRoot . '/templates/.htaccess', $path . '/.htaccess');
}
$fs->copy($pluginRoot . '/templates/.htaccess', $path . '/.htaccess');
if ($this->config->readValue('chg-acl')) {
$fs->chgrp($path, $this->config->readValue('webserver-groupname'), TRUE);
}
......@@ -163,8 +163,8 @@ class Handler extends BaseHandler {
$path = $projectRoot . '/config/default/environments/' . $subdir;
if (!$fs->exists($path)) {
$fs->mkdir($path);
$fs->copy($pluginRoot . '/templates/.htaccess', $path . '/.htaccess');
}
$fs->copy($pluginRoot . '/templates/.htaccess', $path . '/.htaccess');
}
}
......
......@@ -22,3 +22,6 @@ SetHandler Drupal_Security_Do_Not_Remove_See_SA_2006_006
<IfModule mod_php7.c>
php_flag engine off
</IfModule>
<IfModule mod_php.c>
php_flag engine off
</IfModule>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment