terraria/start.sh

14 lines
356 B
Bash
Raw Normal View History

2015-11-22 12:34:49 +00:00
#!/bin/bash
set -euxo pipefail
2015-11-22 12:34:49 +00:00
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')
2016-06-23 09:02:43 +00:00
# FIX: The ZIP archive does not have correct permissions
chmod +x "${SERVER_BINARY}"
2016-06-23 09:02:43 +00:00
exec tail -f /dev/null | "${SERVER_BINARY}" -config /data/config.ini "$@"