From 66dd33af495f26aa7cc12ef1b88e942d8eea575e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Thu, 7 Mar 2024 23:04:21 +0100 Subject: [PATCH] fix --- scripts/install | 4 +++- scripts/upgrade | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/install b/scripts/install index c82fb85..9548a40 100755 --- a/scripts/install +++ b/scripts/install @@ -18,6 +18,8 @@ ynh_script_progression --message="Setting up source files..." --weight=1 ynh_setup_source --dest_dir="$install_dir" +ynh_replace_string --match_string="define('ENVIRONMENT', 'development');" --replace_string="define('ENVIRONMENT', 'production');" --target_file=$install_dir/index.php + chown -R $app:www-data "$install_dir" #================================================= @@ -34,7 +36,7 @@ ynh_use_logrotate ynh_add_config --template="cron" --destination="/etc/cron.d/$app" chown root: "/etc/cron.d/$app" chmod 644 "/etc/cron.d/$app" - + #================================================= # END OF SCRIPT #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index 876a157..c4ed1ce 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -18,6 +18,8 @@ ynh_script_progression --message="Upgrading source files..." --weight=1 ynh_setup_source --dest_dir="$install_dir" +ynh_replace_string --match_string="define('ENVIRONMENT', 'development');" --replace_string="define('ENVIRONMENT', 'production');" --target_file=$install_dir/index.php + chown -R $app:www-data "$install_dir" #=================================================