mirror of
https://github.com/YunoHost-Apps/synapse_ynh.git
synced 2024-09-03 20:26:38 +02:00
Apply suggestions from code review
Co-authored-by: Josue-T <josue@tille.ch>
This commit is contained in:
parent
af225f6201
commit
5d6efa05b7
1 changed files with 2 additions and 2 deletions
|
@ -103,7 +103,7 @@ backup_before_upgrade=$(ynh_app_setting_get --app=$app --key=backup_before_upgra
|
||||||
if [ -z $backup_before_upgrade ] ; then
|
if [ -z $backup_before_upgrade ] ; then
|
||||||
backup_before_upgrade="true"
|
backup_before_upgrade="true"
|
||||||
disable_backup_before_upgrade=$(ynh_app_setting_get --app=$app --key=disable_backup_before_upgrade)
|
disable_backup_before_upgrade=$(ynh_app_setting_get --app=$app --key=disable_backup_before_upgrade)
|
||||||
if [ $disable_backup_before_upgrade ] ; then
|
if [ "0$disable_backup_before_upgrade" -ne 1 ]; then
|
||||||
backup_before_upgrade="false"
|
backup_before_upgrade="false"
|
||||||
fi
|
fi
|
||||||
ynh_app_setting_set --app=$app --key=backup_before_upgrade --value=$backup_before_upgrade
|
ynh_app_setting_set --app=$app --key=backup_before_upgrade --value=$backup_before_upgrade
|
||||||
|
@ -117,7 +117,7 @@ fi
|
||||||
ynh_systemd_action --service_name=matrix-$app.service --action=stop
|
ynh_systemd_action --service_name=matrix-$app.service --action=stop
|
||||||
|
|
||||||
# Backup the current version of the app
|
# Backup the current version of the app
|
||||||
if [ $backup_before_upgrade ] ; then
|
if $backup_before_upgrade ; then
|
||||||
ynh_script_progression --message="Backing up the app before upgrading (may take a while)..." --weight=30
|
ynh_script_progression --message="Backing up the app before upgrading (may take a while)..." --weight=30
|
||||||
ynh_backup_before_upgrade
|
ynh_backup_before_upgrade
|
||||||
ynh_clean_setup () {
|
ynh_clean_setup () {
|
||||||
|
|
Loading…
Reference in a new issue