From f18bebaf01793312aefc1af2fcb10420522c56a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20B=C3=B6hmke?= Date: Sun, 25 Mar 2018 10:37:08 +0200 Subject: [PATCH] Skip database link creation if already exist --- docker-ts3.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docker-ts3.sh b/docker-ts3.sh index a69f1e4..ec3e380 100755 --- a/docker-ts3.sh +++ b/docker-ts3.sh @@ -10,7 +10,9 @@ fi echo "- Linking host mounted database..." -ln -s $VOLUME/ts3server.sqlitedb /opt/teamspeak3-server_linux_amd64/ts3server.sqlitedb +if ! [ -L /opt/teamspeak3-server_linux_amd64/ts3server.sqlitedb ]; then + ln -s $VOLUME/ts3server.sqlitedb /opt/teamspeak3-server_linux_amd64/ts3server.sqlitedb +fi echo "- Link the files-folder into the host-mounted volume..."