mirror of
https://github.com/luzifer-docker/teamspeak3.git
synced 2024-12-20 22:51:17 +00:00
Merge pull request #5 from rschmukler/master
always link database to host-mounted directory for persistence
This commit is contained in:
commit
0eb32bfa08
1 changed files with 2 additions and 6 deletions
|
@ -2,12 +2,8 @@
|
||||||
VOLUME=/teamspeak3
|
VOLUME=/teamspeak3
|
||||||
|
|
||||||
echo " ----- docker-ts3 ------"
|
echo " ----- docker-ts3 ------"
|
||||||
echo "1. Check if ts3server.sqlitedb exists in host-mounted volume."
|
echo "1. Linking host mounted database"
|
||||||
if [ -f $VOLUME/ts3server.sqlitedb ]
|
ln -s $VOLUME/ts3server.sqlitedb /opt/teamspeak3-server_linux-amd64/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 "2. Link the files-folder into the host-mounted volume."
|
echo "2. Link the files-folder into the host-mounted volume."
|
||||||
mkdir -p /teamspeak3/files
|
mkdir -p /teamspeak3/files
|
||||||
|
|
Loading…
Reference in a new issue