#!/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}"