mirror of
https://github.com/casjaysdevdocker/gitea
synced 2025-09-18 09:57:48 -04:00
🗃️ Committing everything that changed 🗃️
rootfs/usr/local/bin/start-runners
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user