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