Skip to content

armgit / ODS

Public Imported from GitHub
0

ODS V3 Pre-Release: Public testing and refinement ahead of the official V3 launch. Turn your PC, Mac, or Linux box into a private AI server.

325 B
Raw Blame
#!/bin/sh
set -eu
# Read only: an absent repository is normal before its owner initializes it.
status=$(curl --silent --show-error --max-time 5 --config /tmp/health-curl.conf --output /dev/null --write-out '%{http_code}' http://127.0.0.1:8000/ods/health/config)
case "$status" in
    200|404) exit 0 ;;
    *) exit 1 ;;
esac