From dcf19ed86d4630f7f17865231908f2df2d55e1af Mon Sep 17 00:00:00 2001 From: Selamanse Date: Wed, 19 Jul 2017 13:00:22 +0200 Subject: [PATCH] Fixes ynh_die errors --- scripts/install | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/install b/scripts/install index 357a5bc..149fcfd 100644 --- a/scripts/install +++ b/scripts/install @@ -35,7 +35,7 @@ workdir=$(pwd) # Check domain/path availability sudo yunohost app checkurl $domain -a $app if [[ ! $? -eq 0 ]]; then - ynh_die + ynh_die "domain not available" fi # Save specific settings @@ -104,7 +104,7 @@ sudo systemctl enable Rocketchat.service isup=false; x=45; while [ $x -gt 0 ];do echo "Waiting approx. $x seconds..."; \ x=$(( $x - 1 )); sleep 1; if $(curl -m 1 -s localhost:3000/api/v1/info | \ grep -e "success.*true" >/dev/null 2>%1); then isup=true; break; fi; done && if $isup; \ -then echo "service is up"; else ynh_die; fi +then echo "service is up"; else ynh_die "$app could not be started"; fi cd $workdir