Added persistent files storage

This commit is contained in:
Knut Ahlers 2015-01-16 19:54:47 +01:00
parent 744ae39d81
commit f538c89614

View file

@ -8,14 +8,15 @@ if [ -f $VOLUME/ts3server.sqlitedb ]
echo "$VOLUME/ts3server.sqlitedb found. Creating Link between host-mounted db-file and ts3-folder." 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 ln -s $VOLUME/ts3server.sqlitedb /opt/teamspeak3-server_linux-amd64/ts3server.sqlitedb
fi fi
echo "2. Link the files-folder into the host-mounted volume. TODO Not implemented yet" echo "2. Link the files-folder into the host-mounted volume."
#ln -s /opt/teamspeak3-server_linux-amd64/files/ /teamspeak3/files/ mkdir -p /teamspeak3/files
rm -rf /opt/teamspeak3-server_linux-amd64/files
ln -s /teamspeak3/files /opt/teamspeak3-server_linux-amd64/files
echo "3. Starting TS3-Server." echo "3. Starting TS3-Server."
echo "Check if ts3server.ini exists in host-mounted volume." echo "Check if ts3server.ini exists in host-mounted volume."
if [ -f $VOLUME/ts3server.ini ] if [ -f $VOLUME/ts3server.ini ]; then
then
echo "$VOLUME/ts3server.ini found. Using ini as config file." echo "$VOLUME/ts3server.ini found. Using ini as config file."
echo "HINT: If this ini was transfered from another ts3-install you may want to make sure the following settings are active for the usage of host-mounted volume: (OPTIONAL)" echo "HINT: If this ini was transfered from another ts3-install you may want to make sure the following settings are active for the usage of host-mounted volume: (OPTIONAL)"
echo "query_ip_whitelist='/teamspeak3/query_ip_whitelist.txt'" echo "query_ip_whitelist='/teamspeak3/query_ip_whitelist.txt'"