From 97cbdaa44409a597b30cc199ca9f6822a99dcf7d Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Sat, 4 Sep 2021 08:51:49 +0200 Subject: [PATCH] Fix --- scripts/backup | 2 +- scripts/remove | 9 +++++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/scripts/backup b/scripts/backup index cd48850..45852ba 100644 --- a/scripts/backup +++ b/scripts/backup @@ -53,7 +53,7 @@ ynh_backup --src_path="/etc/nginx/conf.d/$domain.d/$app.conf" # BACKUP DATADIR DIRECTORY #================================================= -ynh_backup --src_path="$data_path" +ynh_backup --src_path="$data_path" --is_big #================================================= # BACKUP SYSTEMD diff --git a/scripts/remove b/scripts/remove index aa7454a..f3a5055 100644 --- a/scripts/remove +++ b/scripts/remove @@ -57,10 +57,15 @@ ynh_script_progression --message="Removing app main directory..." --weight=6 ynh_secure_remove --file="$final_path" #================================================= -# REMOVE DATADIR DIRECTORY +# REMOVE DATA DIR #================================================= -ynh_secure_remove --file="$data_path" +# # Remove the app data directory with the command `yunohost app remove --purge` +# if [ "${YNH_APP_PURGE:-0}" -eq 1 ] +# then +# ynh_script_progression --message="Removing $app data directory..." --weight=2 +# ynh_secure_remove --file="$data_path" +# fi #================================================= # REMOVE NGINX CONFIGURATION