mirror of
https://github.com/luzifer-docker/teamspeak3.git
synced 2024-12-30 03:11:16 +00:00
no message
This commit is contained in:
parent
558cd3feb2
commit
808a3bb749
1 changed files with 30 additions and 19 deletions
|
@ -1,28 +1,39 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
VOLUME=/teamspeak3
|
VOLUME=/teamspeak3
|
||||||
|
|
||||||
#-- ts 3 starten im hintergrund
|
echo " ----- docker-ts3 ------"
|
||||||
#-- den erstellten files ordner symlinken
|
echo "1. Check if ts3server.sqlitedb exists in host-mounted volume."
|
||||||
#-- die erstelle ts3 db symlinken
|
|
||||||
|
|
||||||
echo "This scripts checks the existence of the ts3server.sqlitedb."
|
|
||||||
echo "Checking..."
|
|
||||||
if [ -f $VOLUME/ts3server.sqlitedb ]
|
if [ -f $VOLUME/ts3server.sqlitedb ]
|
||||||
then
|
then
|
||||||
echo "$VOLUME/ts3server.sqlitedb exists."
|
echo "$VOLUME/ts3server.sqlitedb found. Creating Link between host-mounted db-file and ts3-folder."
|
||||||
echo "Creating link."
|
|
||||||
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"
|
||||||
|
#ln -s /opt/teamspeak3-server_linux-amd64/files/ /teamspeak3/files/
|
||||||
|
|
||||||
|
|
||||||
|
echo "3. Starting TS3-Server."
|
||||||
|
echo "Check if ts3server.ini exists in host-mounted volume."
|
||||||
|
if [ -f $VOLUME/ts3server.ini ]
|
||||||
|
then
|
||||||
|
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 "query_ip_whitelist='/teamspeak3/query_ip_whitelist.txt'"
|
||||||
|
echo "query_ip_backlist='/teamspeak3/query_ip_blacklist.txt'"
|
||||||
|
echo "logpath='/teamspeak3/logs/'"
|
||||||
|
echo "licensepath='/teamspeak3/'"
|
||||||
|
echo "inifile='/teamspeak3/ts3server.ini'"
|
||||||
|
/opt/teamspeak3-server_linux-amd64/ts3server_minimal_runscript.sh \
|
||||||
|
inifile="/teamspeak3/ts3server.ini"
|
||||||
|
else
|
||||||
|
echo "$VOLUME/ts3server.ini not found. Creating new config file."
|
||||||
/opt/teamspeak3-server_linux-amd64/ts3server_minimal_runscript.sh \
|
/opt/teamspeak3-server_linux-amd64/ts3server_minimal_runscript.sh \
|
||||||
query_ip_whitelist="/teamspeak3/query_ip_whitelist.txt" \
|
query_ip_whitelist="/teamspeak3/query_ip_whitelist.txt" \
|
||||||
query_ip_backlist="/teamspeak3/query_ip_blacklist.txt" \
|
query_ip_backlist="/teamspeak3/query_ip_blacklist.txt" \
|
||||||
logpath="/teamspeak3/logs/" \
|
logpath="/teamspeak3/logs/" \
|
||||||
licensepath="/teamspeak3/"
|
licensepath="/teamspeak3/"
|
||||||
# inifile="/teamspeak3/ts3server.ini" \
|
inifile="/teamspeak3/ts3server.ini" \
|
||||||
# createinifile=1
|
createinifile=1
|
||||||
|
fi
|
||||||
|
|
||||||
#ln -s /opt/teamspeak3-server_linux-amd64/files/ /teamspeak3/files/
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue