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
+3 -3
View File
@@ -1,7 +1,7 @@
#!/bin/bash
# shellcheck source=../start-utils
. ${SCRIPTS:-/}start-utils
# shellcheck source=../scripts/start-utils
. "${SCRIPTS:-/}start-utils"
if isTrue "${DISABLE_HEALTHCHECK}"; then
echo "Healthcheck disabled"
@@ -10,6 +10,6 @@ elif isTrue "${ENABLE_AUTOPAUSE}" && [[ "$( ps -ax -o stat,comm | grep 'java' |
echo "Java process suspended by Autopause function"
exit 0
else
mc-monitor status --host localhost --port $SERVER_PORT
mc-monitor status --host localhost --port "${SERVER_PORT:-25565}"
exit $?
fi