1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/synapse_ynh.git synced 2024-09-03 20:26:38 +02:00

Fix upgrade script

This commit is contained in:
Josué Tille 2018-02-12 10:26:59 +01:00
parent 552cd56308
commit 0d1e2e97bc

View file

@ -54,9 +54,12 @@ then
fi
#=================================================
# BACKUP BEFORE UPGRADE THEN ACTIVE TRAP
# BACKUP BEFORE UPGRADE
#=================================================
# We stop the service before to set ynh_clean_setup
systemctl stop matrix-$app.service
# Backup the current version of the app
if [[ $(ynh_app_setting_get $app disable_backup_before_upgrade) != '1' ]]
then
@ -66,12 +69,6 @@ then
}
fi
# We stop the service before to enable TRAP because if this command fail the restoration might be not possible.
systemctl stop matrix-$app.service
# Exit if an error occurs during the execution of the script
ynh_abort_if_errors
#=================================================
# UPGRADE FROM DIFFERENTS PACKAGE EVOLUTION
#=================================================