diff --git a/scripts/install b/scripts/install index 614630f..1c63c53 100644 --- a/scripts/install +++ b/scripts/install @@ -12,10 +12,8 @@ is_public=$3 app=$YNH_APP_INSTANCE_NAME # Check domain/path availability -sudo yunohost app checkurl $domain$path -a $app -if [[ ! $? -eq 0 ]]; then - exit 1 -fi +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 -y -qq install php5-sqlite