From 0d02bc61dfe9f651c837183b79f523867ebea895 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Fri, 5 Nov 2021 22:19:27 +0100 Subject: [PATCH] Update restore --- scripts/restore | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/restore b/scripts/restore index d3b24bc..3a2a4eb 100644 --- a/scripts/restore +++ b/scripts/restore @@ -34,8 +34,8 @@ datadir=$(ynh_app_setting_get --app=$app --key=datadir) #================================================= ynh_script_progression --message="Validating restoration parameters..." -ynh_webpath_available $domain $path_url \ - || ynh_die "Path not available: ${domain}${path_url}" +test ! -d $final_path \ + || ynh_die --message="There is already a directory: $final_path " #================================================= # STANDARD RESTORE STEPS