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

#63 Ensure templated files are writeable and set...

#63 Ensure templated files are writeable and set them read-only afterwards if they don't go into git, as they will be overwritten next time
parent 7c32f10e
No related branches found
No related tags found
1 merge request!76Merging develop into main
Pipeline #996550 passed
......@@ -447,7 +447,9 @@ class Handler extends BaseHandler {
if (empty($def['add2git'])) {
$this->gitIgnore($filename);
}
$fs->chmod($file, 0664);
if (file_exists($file)) {
$fs->chmod($file, 0664);
}
file_put_contents($file, $rendered);
if (empty($def['add2git'])) {
$fs->chmod($file, 0444);
......
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