From 25377764d555ab340c8ea7fda17e9e68f775920e Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Sat, 11 Dec 2021 11:29:53 +0100 Subject: [PATCH] Keep the config file --- scripts/upgrade | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index 79062ac8..4a782638 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -157,7 +157,7 @@ then ynh_script_progression --message="Upgrading source files..." # Download, check integrity, uncompress and patch the source from app.src - ynh_setup_source --dest_dir="$final_path" + ynh_setup_source --dest_dir="$final_path" --keep="$final_path/.env" fi chmod 750 "$final_path" @@ -199,12 +199,12 @@ ynh_exec_warn_less ynh_composer_exec --phpversion="$phpversion" --workdir="$fina #================================================= # UPDATE A CONFIG FILE #================================================= -ynh_script_progression --message="Updating a config file..." +# ynh_script_progression --message="Updating a config file..." -ynh_add_config --template="../conf/.env" --destination="$final_path/.env" +# ynh_add_config --template="../conf/.env" --destination="$final_path/.env" -chmod 400 "$final_path/.env" -chown $app:$app "$final_path/.env" +# chmod 400 "$final_path/.env" +# chown $app:$app "$final_path/.env" #================================================= # DEPLOYMENT