From 44b76a1ff9f25784e30ff670d0833875130cc7a4 Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Tue, 12 Jun 2018 19:37:03 +0200 Subject: [PATCH] Fix: Remove the fifo if it already exists Signed-off-by: Knut Ahlers --- start.sh | 3 +++ 1 file changed, 3 insertions(+) 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 "$@"