🗃️ Committing everything that changed 🗃️

rootfs/usr/local/bin/start-runners
This commit is contained in:
casjay
2025-09-17 18:23:42 -04:00
parent d0af1c5f6d
commit 3b5f98ff37

View File

@@ -19,9 +19,12 @@ cleanup() {
trap cleanup SIGTERM SIGINT trap cleanup SIGTERM SIGINT
# Validate required environment variables # Validate required environment variables
if [ -z "$SERVER_ADDRESS" ]; then if [ -n "$SERVER_ADDRESS" ]; then
log "ERROR: SERVER_ADDRESS environment variable is required" if ! echo "$SERVER_ADDRESS" | grep -q '://'; then
exit 1 SERVER_ADDRESS="http://$SERVER_ADDRESS"
fi
else
SERVER_ADDRESS=http://$HOSTNAME
fi fi
if [ -z "$SERVER_TOKEN" ]; then if [ -z "$SERVER_TOKEN" ]; then