🗃️ 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
# Validate required environment variables
if [ -z "$SERVER_ADDRESS" ]; then
log "ERROR: SERVER_ADDRESS environment variable is required"
exit 1
if [ -n "$SERVER_ADDRESS" ]; then
if ! echo "$SERVER_ADDRESS" | grep -q '://'; then
SERVER_ADDRESS="http://$SERVER_ADDRESS"
fi
else
SERVER_ADDRESS=http://$HOSTNAME
fi
if [ -z "$SERVER_TOKEN" ]; then