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 "