From 79c398d7d9c876f833cfd9a084d2455f73cc3ef3 Mon Sep 17 00:00:00 2001 From: tituspijean Date: Wed, 29 Sep 2021 09:41:06 +0200 Subject: [PATCH] Revert "Remove ynh_webpath_available in restore" This reverts commit 70569f7067a5ec2e858ce612217a2ac2096465e6. --- scripts/restore | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/restore b/scripts/restore index 405d5e9..68709ce 100755 --- a/scripts/restore +++ b/scripts/restore @@ -39,6 +39,8 @@ port=$(ynh_app_setting_get --app=$app --key=port) #================================================= ynh_script_progression --message="Validating restoration parameters..." +ynh_webpath_available --domain=$domain --path_url=$path_url \ + || ynh_die --message="Path not available: ${domain}${path_url}" test ! -d $final_path \ || ynh_die --message="There is already a directory: $final_path "