1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/synapse_ynh.git synced 2024-09-03 20:26:38 +02:00
This commit is contained in:
gredin67 2023-01-11 17:21:45 +01:00
parent 3ced5e2a7c
commit e6a6fffef1

View file

@ -100,7 +100,7 @@ fi
#=================================================
backup_before_upgrade=$(ynh_app_setting_get --app=$app --key=backup_before_upgrade)
if [ -z "$backup_before_upgrade" ] ; then
if [ $(ynh_app_setting_get --app=$app --key=disable_backup_before_upgrade) ] ; then
if $(ynh_app_setting_get --app=$app --key=disable_backup_before_upgrade) ; then
backup_before_upgrade="false"
fi
@ -113,8 +113,7 @@ ynh_script_progression --message="Backing up the app before upgrading (may take
ynh_systemd_action --service_name=matrix-$app.service --action=stop
# Backup the current version of the app
if [ backup_before_upgrade ]
then
if $backup_before_upgrade ; then
ynh_backup_before_upgrade
ynh_clean_setup () {
# Clean installation remainings that are not handled by the remove script.