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"