1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/rocketchat_ynh.git synced 2024-09-03 20:16:25 +02:00

Fixes ynh_die errors

This commit is contained in:
Selamanse 2017-07-19 13:00:22 +02:00
parent de0adfc3e7
commit dcf19ed86d

View file

@ -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