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

Fix upgrade

This commit is contained in:
oufmilo 2023-02-05 14:20:15 +01:00
parent 17e37e6e9a
commit 4b9926e55b

View file

@ -34,7 +34,7 @@ upgrade_type=$(ynh_check_app_version_changed)
# ENSURE DOWNWARD COMPATIBILITY
#=================================================
if ynh_compare_current_package_version --comparison lt --version 12.119.2~ynh1
if ynh_compare_current_package_version --comparison lt --version 12.109.2~ynh1
then
ynh_die --message="Sorry, this version is not upgradable to the latest version :("
fi
@ -106,6 +106,7 @@ then
ynh_script_progression --message="Upgrading source files..." --weight=5
pushd "$final_path"
git config --system --add safe.directory *
git checkout master
git pull --quiet
git checkout $COMMIT --quiet