Files
zurg/healthcheck.sh
Ben Sarmiento 00d6100323 Fix healthcheck
2024-02-04 20:28:58 +01:00

8 lines
165 B
Bash

#!/bin/sh
response=$(curl -o /dev/null -s -w "%{http_code}" "http://localhost:9999/http/version.txt")
if [ "$response" -eq 200 ]; then
exit 0
else
exit 1
fi