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