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

Updates wait time for service

This commit is contained in:
Selamanse 2017-07-21 11:30:21 +02:00
parent ff8168e925
commit 40986c0685

View file

@ -52,7 +52,7 @@ ynh_app_setting_set $app final_path $final_path
ynh_app_setting_set $app is_public $is_public
function waitforservice {
isup=false; x=45; while [ $x -gt 0 ];do echo "Waiting approx. $x seconds..."; \
isup=false; x=90; while [ $x -gt 0 ];do echo "Waiting approx. $x seconds..."; \
x=$(( $x - 1 )); sleep 1; if $(curl -m 1 -s localhost:$port${path:-/}/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 "$app could not be started"; fi