From 2e1b6fb7578ae560648ea8b25c1b95d78dfd2394 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Mon, 9 Oct 2023 09:00:38 +0200 Subject: [PATCH] Update upgrade --- scripts/upgrade | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index 8580bdb..0c9acdf 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -42,7 +42,7 @@ if [ "$upgrade_type" == "UPGRADE_APP" ] then ynh_script_progression --message="Upgrading source files..." --weight=5 # Download, check integrity, uncompress and patch the source from app.src - ynh_setup_source --dest_dir="$install_dir" --full_replace=1 + ynh_setup_source --dest_dir="$install_dir" --keep="config.local.php" #--full_replace=1 fi chmod -R o-rwx "$install_dir" @@ -68,13 +68,13 @@ chmod 644 "/etc/cron.d/$app" #================================================= # UPDATE A CONFIG FILE #================================================= -ynh_script_progression --message="Updating a configuration file..." --weight=5 +#ynh_script_progression --message="Updating a configuration file..." --weight=5 # Install configuration files -ynh_add_config --template="../conf/config.local.php" --destination="$install_dir/config.local.php" +#ynh_add_config --template="../conf/config.local.php" --destination="$install_dir/config.local.php" -chmod 650 "$install_dir/config.local.php" -chown $app:$app "$install_dir/config.local.php" +#chmod 650 "$install_dir/config.local.php" +#chown $app:$app "$install_dir/config.local.php" #================================================= # END OF SCRIPT