From 595ed53ceda3a403de67538329154fff398658b5 Mon Sep 17 00:00:00 2001 From: Robles Rodolphe Date: Sun, 3 Oct 2021 14:30:50 +0200 Subject: [PATCH] remove tmp/backups after first pre-upgrade if necessary --- scripts/upgrade | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/upgrade b/scripts/upgrade index 45bfa05..59f33d0 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -101,11 +101,13 @@ then if [ -d "$backup_squelettes" ] then cp -ar $backup_squelettes $final_path/www/squelettes + ynh_secure_remove $backup_squelettes fi if [ -e "$backup_bdd" ] then cp -a $backup_bdd $final_path/association.sqlite + ynh_secure_remove $backup_squelettes fi chown -R $app:$app $final_path