terraria/start.sh

12 lines
350 B
Bash
Raw Normal View History

2015-11-22 12:34:49 +00:00
#!/bin/bash
if ! [ -e /data/config.ini ]; then
cp ${SERVER}/config.ini.default /data/config.ini
fi
2016-06-23 09:02:43 +00:00
# FIX: The ZIP archive does not have correct permissions
chmod +x /home/gameserver/terraria/Dedicated\ Server/Linux/TerrariaServer*
exec tail -f /dev/null | ${SERVER}/Dedicated\ Server/Linux/TerrariaServer.bin.x86_64 \
2015-11-22 12:34:49 +00:00
-config /data/config.ini