From a432883fb05d9f1104de8f382b5255674cf5069b Mon Sep 17 00:00:00 2001 From: ewilly Date: Fri, 7 Jan 2022 17:02:26 +0100 Subject: [PATCH] Fix --- scripts/remove | 2 +- scripts/restore | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/remove b/scripts/remove index 5be30b1..b2a2a39 100644 --- a/scripts/remove +++ b/scripts/remove @@ -74,7 +74,7 @@ ynh_secure_remove --file="$final_path" if [ "${YNH_APP_PURGE:-0}" -eq 1 ] then ynh_script_progression --message="Removing app data directory..." - ynh_secure_remove --file="$datadir" + ynh_secure_remove --file="$data_path" fi #================================================= diff --git a/scripts/restore b/scripts/restore index 1235fc2..d657d38 100644 --- a/scripts/restore +++ b/scripts/restore @@ -75,9 +75,9 @@ ynh_restore_file --origin_path="$final_path" #================================================= ynh_script_progression --message="Restoring the data directory..." -ynh_restore_file --origin_path="$datadir" --not_mandatory +ynh_restore_file --origin_path="$data_path" --not_mandatory -mkdir -p $datadir +mkdir -p $data_path #================================================= # SPECIFIC RESTORATION