From 267573d53082b0b78dd532f7264d7efddf3efda2 Mon Sep 17 00:00:00 2001 From: Ryan Schmukler Date: Thu, 5 Nov 2015 03:44:43 -0500 Subject: [PATCH] always link database to host-mounted directory for persistence --- scripts/docker-ts3.sh | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/scripts/docker-ts3.sh b/scripts/docker-ts3.sh index 0f4b090..d5158fe 100644 --- a/scripts/docker-ts3.sh +++ b/scripts/docker-ts3.sh @@ -2,12 +2,8 @@ VOLUME=/teamspeak3 echo " ----- docker-ts3 ------" -echo "1. Check if ts3server.sqlitedb exists in host-mounted volume." -if [ -f $VOLUME/ts3server.sqlitedb ] - then - echo "$VOLUME/ts3server.sqlitedb found. Creating Link between host-mounted db-file and ts3-folder." - ln -s $VOLUME/ts3server.sqlitedb /opt/teamspeak3-server_linux-amd64/ts3server.sqlitedb -fi +echo "1. Linking host mounted database" +ln -s $VOLUME/ts3server.sqlitedb /opt/teamspeak3-server_linux-amd64/ts3server.sqlitedb echo "2. Link the files-folder into the host-mounted volume." mkdir -p /teamspeak3/files