fix: defaulted SERVER_PORT for health and autopause

#1120
This commit is contained in:
Geoff Bourne
2021-11-13 18:42:00 -06:00
parent a8a60264e9
commit df7d6c298a
2 changed files with 10 additions and 4 deletions

View File

@@ -1,9 +1,15 @@
#!/bin/bash
. ${SCRIPTS:-/}start-utils
# shellcheck source=start-utils
. "${SCRIPTS:-/}start-utils"
: "${SERVER_PORT:=25565}"
export SERVER_PORT
log "Autopause functionality enabled"
isDebugging && set -x
cp /autopause/knockd-config.cfg /tmp/knockd-config.cfg
# update server port to listen to