From 790aad8bed7bdc7c7259b0109220664945e05c02 Mon Sep 17 00:00:00 2001 From: frju365 Date: Sat, 11 Feb 2017 20:26:05 +0100 Subject: [PATCH] Update install --- scripts/install | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/install b/scripts/install index 93e9736..3519500 100644 --- a/scripts/install +++ b/scripts/install @@ -13,6 +13,10 @@ app=$YNH_APP_INSTANCE_NAME # Source app helpers source /usr/share/yunohost/helpers +# Check domain/path availability +sudo yunohost app checkurl "${domain}${path}" -a "$app" \ + || ynh_die "Path not available: ${domain}${path}" + # Normalize the url path syntax # Handle the slash at the beginning of path and its absence at ending # Return a normalized url path @@ -38,10 +42,6 @@ ynh_normalize_url_path () { ynh_normalize_url_path $path -# Check domain/path availability -sudo yunohost app checkurl "${domain}${path}" -a "$app" \ - || ynh_die "Path not available: ${domain}${path}" - # Install dependency to convert tracks to a readable format for the browser sudo apt-get update sudo apt-get -y -qq install php5-sqlite