From ab1adf6dc12bbe46b8eb4be4db539217a1d77ec0 Mon Sep 17 00:00:00 2001 From: John Skinner Date: Thu, 28 Nov 2024 11:24:28 -0600 Subject: [PATCH 1/2] allow spaces in server name --- container/entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/container/entrypoint.sh b/container/entrypoint.sh index 0dd9374..055c282 100755 --- a/container/entrypoint.sh +++ b/container/entrypoint.sh @@ -77,7 +77,7 @@ fi # Build launch arguments echo "$(timestamp) INFO: Constructing launch arguments" -LAUNCH_ARGS="${SERVER_LEVEL} -server -SILENT -SteamServerName=${SERVER_NAME} -${GAME_MODE} -MaxPlayers=${SERVER_SLOTS} -backup=${BACKUP} -saving=${SAVING} -log -UTF8Output -MULTIHOME=${LISTEN_ADDRESS} -Port=${GAME_PORT} -QueryPort=${QUERY_PORT} -online=Steam -forcepassthrough -adminpsw=${ADMIN_PASSWORD}" +LAUNCH_ARGS="${SERVER_LEVEL} -server -SILENT -SteamServerName="${SERVER_NAME}" -${GAME_MODE} -MaxPlayers=${SERVER_SLOTS} -backup=${BACKUP} -saving=${SAVING} -log -UTF8Output -MULTIHOME=${LISTEN_ADDRESS} -Port=${GAME_PORT} -QueryPort=${QUERY_PORT} -online=Steam -forcepassthrough -adminpsw=${ADMIN_PASSWORD}" if [ -n "${SERVER_PASSWORD}" ]; then LAUNCH_ARGS="${LAUNCH_ARGS} -PSW=${SERVER_PASSWORD}" From b80a8d8a8f07ccf2066008ca7590fa1b736fff7d Mon Sep 17 00:00:00 2001 From: John Skinner Date: Thu, 28 Nov 2024 11:41:50 -0600 Subject: [PATCH 2/2] forgot to escape quotes for server name in launch args string --- container/entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/container/entrypoint.sh b/container/entrypoint.sh index 055c282..89dbec1 100755 --- a/container/entrypoint.sh +++ b/container/entrypoint.sh @@ -77,7 +77,7 @@ fi # Build launch arguments echo "$(timestamp) INFO: Constructing launch arguments" -LAUNCH_ARGS="${SERVER_LEVEL} -server -SILENT -SteamServerName="${SERVER_NAME}" -${GAME_MODE} -MaxPlayers=${SERVER_SLOTS} -backup=${BACKUP} -saving=${SAVING} -log -UTF8Output -MULTIHOME=${LISTEN_ADDRESS} -Port=${GAME_PORT} -QueryPort=${QUERY_PORT} -online=Steam -forcepassthrough -adminpsw=${ADMIN_PASSWORD}" +LAUNCH_ARGS="${SERVER_LEVEL} -server -SILENT -SteamServerName=\"${SERVER_NAME}\" -${GAME_MODE} -MaxPlayers=${SERVER_SLOTS} -backup=${BACKUP} -saving=${SAVING} -log -UTF8Output -MULTIHOME=${LISTEN_ADDRESS} -Port=${GAME_PORT} -QueryPort=${QUERY_PORT} -online=Steam -forcepassthrough -adminpsw=${ADMIN_PASSWORD}" if [ -n "${SERVER_PASSWORD}" ]; then LAUNCH_ARGS="${LAUNCH_ARGS} -PSW=${SERVER_PASSWORD}"