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

Merge pull request #91 from YunoHost-Apps/memo-567-patch-1

Update upgrade - Ensure downward compatibility
This commit is contained in:
Éric Gaspar 2022-04-28 08:27:12 +02:00 committed by GitHub
commit 0b73dac3e0
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
#================================================= #=================================================