terraria/start.sh
Knut Ahlers 7ff42e3dc2
Update Terraria v1.3.4.4
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2018-01-06 21:21:57 +01:00

13 lines
356 B
Bash
Executable file

#!/bin/bash
set -euxo pipefail
if ! [ -e /data/config.ini ]; then
cp ${SERVER}/config.ini.default /data/config.ini
fi
SERVER_BINARY=$(find /home/gameserver -name 'TerrariaServer.bin.x86_64')
# FIX: The ZIP archive does not have correct permissions
chmod +x "${SERVER_BINARY}"
exec tail -f /dev/null | "${SERVER_BINARY}" -config /data/config.ini "$@"