Fix: Remove the fifo if it already exists

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2018-06-12 19:37:03 +02:00
parent 1c5ee42f5c
commit 44b76a1ff9
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E

View file

@ -13,6 +13,9 @@ chmod +x "${SERVER_BINARY}"
# Force data path to be writable # Force data path to be writable
chown -R gameserver:gameserver /data 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 \ exec terraria-docker_linux_amd64 | /usr/local/bin/gosu \
gameserver \ gameserver \
${SERVER_BINARY} -config /data/config.ini "$@" ${SERVER_BINARY} -config /data/config.ini "$@"