mirror of
https://github.com/itzg/docker-minecraft-server.git
synced 2026-03-28 09:22:44 +00:00
Add SERVER_HOST Environment in mc-monitor command (#2875)
This commit is contained in:
committed by
GitHub
parent
8fd98f0315
commit
c828985ebe
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user