From 3af6cc79e90f32481103692d23d605a164791de6 Mon Sep 17 00:00:00 2001 From: gredin67 Date: Wed, 11 Jan 2023 18:13:23 +0100 Subject: [PATCH] typotypo --- scripts/upgrade | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index cf912cf..4287efe 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -99,11 +99,13 @@ fi # MIGRATION 7 : Working config panel v1 #================================================= backup_before_upgrade=$(ynh_app_setting_get --app=$app --key=backup_before_upgrade) -if [ -z "$backup_before_upgrade" ] ; then - #disable_backup_before_upgrade=$(ynh_app_setting_get --app=$app --key=disable_backup_before_upgrade) - #if [ [ ] [ $disable_backup_before_upgrade ] ] ; then +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 $disable_backup_before_upgrade ; then backup_before_upgrade="false" fi +fi #================================================= # BACKUP BEFORE UPGRADE THEN ACTIVE TRAP