all-in-one/Containers/docker-socket-proxy/healthcheck.sh

7 lines
137 B
Bash
Raw Normal View History

#!/bin/bash
nc -z "$NEXTCLOUD_HOST" 9000 || exit 0
if [ "$(wget http://127.0.0.1:2375/v1.41/_ping -qO -)" != "OK" ]; then
exit 1
fi