Add SERVER_HOST Environment in mc-monitor command (#2875)

This commit is contained in:
Felipe Paschoal Bergamo
2024-06-05 20:48:35 -03:00
committed by GitHub
parent 8fd98f0315
commit c828985ebe
3 changed files with 11 additions and 3 deletions

View File

@@ -13,6 +13,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 "${MC_HEALTH_EXTRA_ARGS[@]}" --host localhost --port "${SERVER_PORT:-25565}"
mc-monitor status "${MC_HEALTH_EXTRA_ARGS[@]}" --host "${SERVER_HOST:-localhost}" --port "${SERVER_PORT:-25565}"
exit $?
fi