From be89f0e28029d2e8dec9fd42e764a75c3e6a88a1 Mon Sep 17 00:00:00 2001 From: Robles Rodolphe Date: Wed, 29 Dec 2021 00:21:55 +0100 Subject: [PATCH] try add a file with the new constant and add a call with require in the config.local.php --- conf/config.local.release.php | 51 +++++++++++++++++++++++++++++++++++ scripts/upgrade | 5 +++- 2 files changed, 55 insertions(+), 1 deletion(-) create mode 100644 conf/config.local.release.php diff --git a/conf/config.local.release.php b/conf/config.local.release.php new file mode 100644 index 0000000..510ec8f --- /dev/null +++ b/conf/config.local.release.php @@ -0,0 +1,51 @@ +> $final_path/config.local.php +ynh_add_config --template="config.local.release.php" --destination="$final_path/config.local.release.php" + +echo -e "\n require 'config.local.release.php'" >> $final_path/config.local.php # Permissions on files and directories chmod -R o-rwx "$final_path" @@ -265,6 +267,7 @@ find "$final_path" -type f -exec chmod 440 {} + find "$final_path/data" -type d -exec chmod 770 {} + find "$final_path/data" -type f -exec chmod 660 {} + chmod 660 "$final_path/config.local.php" +chmod 660 "$final_path/config.local.release.php" #================================================= # RELOAD NGINX