From 6e15ed6634121bbde1fa5428d310e869081f8699 Mon Sep 17 00:00:00 2001 From: Pierre de La Morinerie Date: Thu, 12 Oct 2017 11:39:21 +0530 Subject: [PATCH] restore: replace deprecated `yunohost app checkurl` --- scripts/restore | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/restore b/scripts/restore index fc9c88b..e4851d0 100644 --- a/scripts/restore +++ b/scripts/restore @@ -21,6 +21,7 @@ app=$YNH_APP_INSTANCE_NAME domain=$(ynh_app_setting_get $app domain) is_public=$(ynh_app_setting_get $app is_public) +path_url="/" final_path="/var/www/$app" data_path="/home/yunohost.app/$app" db_name="$app" @@ -30,7 +31,7 @@ db_user="mmuser" # CHECK IF THE APP CAN BE RESTORED #================================================= -yunohost app checkurl "${domain}" -a "$app" \ +ynh_webpath_available $domain $path_url \ || ynh_die "Path not available: ${domain}" test ! -d $final_path \ || ynh_die "There is already a directory: $final_path "