mirror of
https://github.com/YunoHost-Apps/misskey_ynh.git
synced 2024-09-03 19:46:03 +02:00
Update upgrade
Ensure downward compatibility
This commit is contained in:
parent
80379397f1
commit
7fcbfcde0d
1 changed files with 9 additions and 0 deletions
|
@ -29,6 +29,15 @@ port=$(ynh_app_setting_get --app=$app --key=port)
|
|||
|
||||
upgrade_type=$(ynh_check_app_version_changed)
|
||||
|
||||
#=================================================
|
||||
# ENSURE DOWNWARD COMPATIBILITY
|
||||
#=================================================
|
||||
|
||||
if ynh_compare_current_package_version --comparison lt --version 12.105.0~ynh1
|
||||
then
|
||||
ynh_die --message="Sorry, this version is not upgradable to the latest version :("
|
||||
fi
|
||||
|
||||
#=================================================
|
||||
# BACKUP BEFORE UPGRADE THEN ACTIVE TRAP
|
||||
#=================================================
|
||||
|
|
Loading…
Add table
Reference in a new issue