Skip database link creation if already exist

This commit is contained in:
Benjamin Böhmke 2018-03-25 10:37:08 +02:00
parent 5f8dea05e5
commit f18bebaf01

View file

@ -10,7 +10,9 @@ fi
echo "- Linking host mounted database..." echo "- Linking host mounted database..."
if ! [ -L /opt/teamspeak3-server_linux_amd64/ts3server.sqlitedb ]; then
ln -s $VOLUME/ts3server.sqlitedb /opt/teamspeak3-server_linux_amd64/ts3server.sqlitedb ln -s $VOLUME/ts3server.sqlitedb /opt/teamspeak3-server_linux_amd64/ts3server.sqlitedb
fi
echo "- Link the files-folder into the host-mounted volume..." echo "- Link the files-folder into the host-mounted volume..."