1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/adminer_ynh.git synced 2024-09-03 18:06:06 +02:00

Update upgrade

This commit is contained in:
ericgaspar 2021-11-13 17:10:24 +01:00
parent 1385d9d30a
commit e15085d7c4

View file

@ -52,6 +52,11 @@ upgrade_type=$(ynh_check_app_version_changed)
#=================================================
ynh_script_progression --message="Ensuring downward compatibility..." --weight=1
# If the admin is not defined, We can't upgrade this app
if [ -z "$admin" ]; then
ynh_die --message="You are upgrading Adminer from a version where the admin is not defined. please reinstall the Adminer"
fi
# Cleaning legacy permissions
if ynh_legacy_permissions_exists; then
ynh_legacy_permissions_delete_all