mirror of
https://github.com/mkuf/prind.git
synced 2025-10-26 00:36:17 +02:00
13 lines
306 B
Bash
Executable File
13 lines
306 B
Bash
Executable File
#!/bin/bash
|
|
|
|
state=$(curl -s localhost:8080/state)
|
|
ok=$(echo $state | jq -r .ok)
|
|
online=$(echo $state | jq -r .result.source.online)
|
|
|
|
if [ "$ok" == "true" ] && [ "$online" == "true" ]; then
|
|
## ustreamer is ok and source is online
|
|
exit 0
|
|
else
|
|
## ustreamer is not ok or source is not online
|
|
exit 1
|
|
fi |