1
0
Fork 0
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:
Memo 2022-04-27 15:32:21 +02:00 committed by GitHub
parent 80379397f1
commit 7fcbfcde0d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -29,6 +29,15 @@ port=$(ynh_app_setting_get --app=$app --key=port)
upgrade_type=$(ynh_check_app_version_changed) 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 # BACKUP BEFORE UPGRADE THEN ACTIVE TRAP
#================================================= #=================================================