diff --git a/start.sh b/start.sh index d8bf2c4..eb4a7c9 100755 --- a/start.sh +++ b/start.sh @@ -13,6 +13,9 @@ chmod +x "${SERVER_BINARY}" # Force data path to be writable chown -R gameserver:gameserver /data +# Cleanup fifo if already exists +[ -e /home/gameserver/terraria_cmd ] && rm -f /home/gameserver/terraria_cmd + exec terraria-docker_linux_amd64 | /usr/local/bin/gosu \ gameserver \ ${SERVER_BINARY} -config /data/config.ini "$@"