mirror of
https://github.com/YunoHost-Apps/rocketchat_ynh.git
synced 2024-09-03 20:16:25 +02:00
Fixes the success check
This commit is contained in:
parent
740990111e
commit
af03f48317
1 changed files with 3 additions and 1 deletions
|
@ -5,7 +5,9 @@ ROCKETCHAT_SHASUM=ed53712b37571b959b5c8c8947d6335c21fced316f2b3174bfe027fa25700c
|
|||
NODE_VERSION=4.7.1
|
||||
|
||||
checkcmd() {
|
||||
curl -m 1 -s localhost:$port$path/api/v1/info | grep -e \"success.*true\" >/dev/null 2>&1
|
||||
curl -m 1 -s localhost:$port$path/api/v1/info | \
|
||||
python -c "import sys, json; print json.load(sys.stdin)['success']" | \
|
||||
grep "True" >/dev/null 2>&1
|
||||
}
|
||||
|
||||
waitforservice() {
|
||||
|
|
Loading…
Add table
Reference in a new issue