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:
parent
552cd56308
commit
0d1e2e97bc
1 changed files with 4 additions and 7 deletions
|
@ -54,9 +54,12 @@ then
|
||||||
fi
|
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
|
# Backup the current version of the app
|
||||||
if [[ $(ynh_app_setting_get $app disable_backup_before_upgrade) != '1' ]]
|
if [[ $(ynh_app_setting_get $app disable_backup_before_upgrade) != '1' ]]
|
||||||
then
|
then
|
||||||
|
@ -66,12 +69,6 @@ then
|
||||||
}
|
}
|
||||||
fi
|
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
|
# UPGRADE FROM DIFFERENTS PACKAGE EVOLUTION
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Add table
Reference in a new issue