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:
parent
10c90fdeba
commit
17e37e6e9a
1 changed files with 2 additions and 3 deletions
|
@ -34,7 +34,7 @@ upgrade_type=$(ynh_check_app_version_changed)
|
|||
# ENSURE DOWNWARD COMPATIBILITY
|
||||
#=================================================
|
||||
|
||||
if ynh_compare_current_package_version --comparison lt --version 12.105.0~ynh1
|
||||
if ynh_compare_current_package_version --comparison lt --version 12.119.2~ynh1
|
||||
then
|
||||
ynh_die --message="Sorry, this version is not upgradable to the latest version :("
|
||||
fi
|
||||
|
@ -103,10 +103,9 @@ ynh_system_user_create --username=$app --home_dir="$final_path"
|
|||
|
||||
if [ "$upgrade_type" == "UPGRADE_APP" ]
|
||||
then
|
||||
ynh_script_progression --message="Upgrading source files..."
|
||||
ynh_script_progression --message="Upgrading source files..." --weight=5
|
||||
|
||||
pushd "$final_path"
|
||||
sudo git config --global --add safe.directory $final_path
|
||||
git checkout master
|
||||
git pull --quiet
|
||||
git checkout $COMMIT --quiet
|
||||
|
|
Loading…
Add table
Reference in a new issue