Add local.settings.php to every instance

This commit adds a new file 'local.settings.php' to each distillery
instance. This file can be used to automatically edit global distillery
settings.
This commit is contained in:
Tom Wiesing 2024-04-01 16:41:11 +02:00
parent 6eab3ac311
commit 24ff81f7cd
No known key found for this signature in database
13 changed files with 98 additions and 42 deletions

View file

@ -43,7 +43,6 @@ function set_setting(string $name, mixed $value): bool {
return FALSE;
}
// reset the file mode
return chmod($filename, $old);
}
@ -80,7 +79,7 @@ function install_settings_include(array $paths): bool {
// add code to include the file if it exists
$code = $code . 'if (file_exists(' . $the_path . ')) { include_once ' . $the_path . '; }' . "\n";
}
$code = $code . "// </distillery-settings-include>";
$code = $code . "// </distillery-settings-include>\n";
// and store the settings
try {