ytptube/healthcheck.sh

7 lines
130 B
Bash

#!/usr/bin/env bash
set -eu pipefail
LOCAL_PORT="${YTP_PORT:-8081}"
/usr/bin/curl -f "http://localhost:${LOCAL_PORT}/api/ping"