This commit is contained in:
12
entrypoint.sh
Normal file
12
entrypoint.sh
Normal file
@@ -0,0 +1,12 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
CONFIG_FILE="${CONFIG_FILE:-/config/serverconfig.txt}"
|
||||
WORLD_PATH="${WORLD_PATH:-/worlds}"
|
||||
|
||||
# Terraria server is interactive if no -config is provided.
|
||||
# We always pass a config by default so it boots unattended.
|
||||
exec ./TerrariaServer.bin.x86_64 \
|
||||
-config "${CONFIG_FILE}" \
|
||||
-worldpath "${WORLD_PATH}"
|
||||
|
||||
Reference in New Issue
Block a user