mirror of
https://github.com/luzifer-docker/terraria.git
synced 2024-12-20 15:11:16 +00:00
Fix: Remove the fifo if it already exists
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
1c5ee42f5c
commit
44b76a1ff9
1 changed files with 3 additions and 0 deletions
3
start.sh
3
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 "$@"
|
||||
|
|
Loading…
Reference in a new issue