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