From 6a44ce44719502887ea3198dad1f48d3a7cf8cef Mon Sep 17 00:00:00 2001 From: frju365 Date: Sun, 29 Jan 2017 15:57:14 +0100 Subject: [PATCH] Update install --- scripts/install | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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