From 0c172d881d860f940d21723affe12e687eb34155 Mon Sep 17 00:00:00 2001 From: yalh76 Date: Wed, 10 Apr 2019 00:19:31 +0200 Subject: [PATCH] remove duplicate backup during upgrade --- scripts/upgrade | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index 2605977..3934b2e 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -42,20 +42,6 @@ if [ -z $final_path ]; then ynh_app_setting_set $app final_path $final_path fi -#================================================= -# BACKUP BEFORE UPGRADE THEN ACTIVE TRAP -#================================================= -ynh_print_info "Backing up the app before upgrading (may take a while)..." - -# Backup the current version of the app -ynh_backup_before_upgrade -ynh_clean_setup () { - # restore it if the upgrade fails - ynh_restore_upgradebackup -} -# Exit if an error occurs during the execution of the script -ynh_abort_if_errors - if [ -z "$statedir" ]; then statedir="/home/yunohost.app/$app"