From 76f2c79830675c94f16bce0e08e3b6f70a9ccd88 Mon Sep 17 00:00:00 2001 From: Olivier BILHAUT Date: Tue, 16 Jan 2018 17:05:23 +0100 Subject: [PATCH] Introduced helper ynh_webpath_register instead of checkurl --- scripts/install | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/scripts/install b/scripts/install index c09b908..76e86fb 100644 --- a/scripts/install +++ b/scripts/install @@ -23,8 +23,11 @@ version=$(cat ../sources/version) fi # Check domain/path availability - sudo yunohost app checkurl "${domain}${path}" -a "$app" \ - || ynh_die "path not available: ${domain}${path}" +# sudo yunohost app checkurl "${domain}${path}" -a "$app" \ +# || ynh_die "path not available: ${domain}${path}" + + sudo ynh_webpath_register $app $domain $path \ + || ynh_die "path not available and may be already used : ${domain}${path}" # Check user parameter ynh_user_exists "$admin" \