From 9dab60b2c56dd211aae14909481b28b4fa041cf9 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Fri, 15 Apr 2022 09:09:24 +0200 Subject: [PATCH] Update upgrade --- scripts/upgrade | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index c93295a..f52e171 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -90,7 +90,7 @@ then ynh_script_progression --message="Upgrading source files..." --weight=1 # Download, check integrity, uncompress and patch the source from app.src - ynh_setup_source --dest_dir="$final_path" --keep="$final_path/commento.env" + ynh_setup_source --dest_dir="$final_path" #--keep="$final_path/commento.env" fi chmod 750 "$final_path" @@ -112,15 +112,15 @@ ynh_script_progression --message="Upgrading dependencies..." --weight=1 ynh_exec_warn_less ynh_install_app_dependencies $pkg_dependencies -# #================================================= -# # UPDATE A CONFIG FILE -# #================================================= -# ynh_script_progression --message="Updating a configuration file..." --weight=1 +#================================================= +# UPDATE A CONFIG FILE +#================================================= +ynh_script_progression --message="Updating a configuration file..." --weight=1 -# ynh_add_config --template="../conf/.env" --destination="$final_path/commento.env" +ynh_add_config --template="../conf/.env" --destination="$final_path/commento.env" -# chmod 400 "$final_path/commento.env" -# chown $app:$app "$final_path/commento.env" +chmod 400 "$final_path/commento.env" +chown $app:$app "$final_path/commento.env" #================================================= # SETUP SYSTEMD