From ba8e7ccddfdfc1c4bad6d9f99398ac123c2d2cf3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Tue, 19 Mar 2024 12:34:08 +0100 Subject: [PATCH] Update upgrade --- scripts/upgrade | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index 8291e82..6e7437e 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -13,8 +13,6 @@ secret=$(ynh_string_random --length=50) email=$(ynh_user_get_info --username=$admin --key=mail) timezone="$(cat /etc/timezone)" -upgrade_type=$(ynh_check_app_version_changed) - #================================================= # STOP SYSTEMD SERVICE #================================================= @@ -27,13 +25,9 @@ ynh_systemd_action --service_name=$app --action="stop" --log_path="systemd" #================================================= # DOWNLOAD, CHECK AND UNPACK SOURCE #================================================= +ynh_script_progression --message="Upgrading source files..." --weight=1 -if [ "$upgrade_type" == "UPGRADE_APP" ] -then - ynh_script_progression --message="Upgrading source files..." --weight=1 - - ynh_setup_source --dest_dir="$install_dir" --keep=".env" -fi +ynh_setup_source --dest_dir="$install_dir" --keep=".env" chmod -R o-rwx "$install_dir" chown -R $app:www-data "$install_dir"