From 751a408dbfc3a139ed9e37a1ca9356bb91278edc Mon Sep 17 00:00:00 2001 From: Gredin67 Date: Mon, 24 Apr 2023 21:12:25 +0200 Subject: [PATCH] correct backup_before_upgrade --- scripts/upgrade | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/upgrade b/scripts/upgrade index 29f63c3..13f4723 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -107,7 +107,7 @@ backup_before_upgrade=$(ynh_app_setting_get --app=$app --key=backup_before_upgra if [ -z $backup_before_upgrade ] ; then backup_before_upgrade="true" disable_backup_before_upgrade=$(ynh_app_setting_get --app=$app --key=disable_backup_before_upgrade) - if [ "0$disable_backup_before_upgrade" -ne 1 ]; then + if [ "0$disable_backup_before_upgrade" -ne 0 ]; then backup_before_upgrade="false" fi ynh_app_setting_set --app=$app --key=backup_before_upgrade --value=$backup_before_upgrade