1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/nextcloud_ynh.git synced 2024-09-03 19:55:57 +02:00

Revert "remove upgrade_type"

This reverts commit 09219ab72d.
This commit is contained in:
Éric Gaspar 2024-04-19 12:20:29 +02:00
parent 09219ab72d
commit e509d3766d

View file

@ -3,6 +3,8 @@
source _common.sh
source /usr/share/yunohost/helpers
upgrade_type=$(ynh_check_app_version_changed)
#=================================================
# ENSURE DOWNWARD COMPATIBILITY
#=================================================
@ -146,6 +148,8 @@ then
fi
fi
if [ "$upgrade_type" == "UPGRADE_APP" ]
then
ynh_script_progression --message="Upgrading $app..." --weight=3
# Set write access for the following commands
@ -168,6 +172,7 @@ fi
# While the current version is not the last version, do an upgrade
while [ "$last_version" != "$current_version" ]
do
next_major_version="$(( $current_major_version + 1 ))"
if [[ "$next_major_version" -ge "$last_major_version" ]]; then
ynh_print_info --message="Upgrading to Nextcloud $last_version"
@ -312,6 +317,7 @@ fi
# Calculate and store the config file checksum into the app settings
ynh_store_file_checksum --file="${install_dir}/config/config.php"
fi
#=================================================
# REGEN PERMISSIONS