mirror of
https://github.com/luzifer-docker/teamspeak3.git
synced 2024-11-09 12:30:01 +00:00
Apply shfmt
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
9c0c24fbf6
commit
0d2b29e3b0
1 changed files with 23 additions and 23 deletions
|
@ -4,43 +4,43 @@ set -euo pipefail
|
||||||
VOLUME=/teamspeak3
|
VOLUME=/teamspeak3
|
||||||
|
|
||||||
if [ -e "${VOLUME}/.ts3server_license_accepted" ]; then
|
if [ -e "${VOLUME}/.ts3server_license_accepted" ]; then
|
||||||
echo "- Accepting license as you requested"
|
echo "- Accepting license as you requested"
|
||||||
touch /opt/teamspeak3-server_linux_amd64/.ts3server_license_accepted
|
touch /opt/teamspeak3-server_linux_amd64/.ts3server_license_accepted
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "- Linking host mounted database..."
|
echo "- Linking host mounted database..."
|
||||||
|
|
||||||
if ! [ -L /opt/teamspeak3-server_linux_amd64/ts3server.sqlitedb ]; then
|
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
|
fi
|
||||||
|
|
||||||
echo "- Link the files-folder into the host-mounted volume..."
|
echo "- Link the files-folder into the host-mounted volume..."
|
||||||
|
|
||||||
mkdir -p ${VOLUME}/files
|
mkdir -p ${VOLUME}/files
|
||||||
if ! [ -L /opt/teamspeak3-server_linux_amd64/files ]; then
|
if ! [ -L /opt/teamspeak3-server_linux_amd64/files ]; then
|
||||||
rm -rf /opt/teamspeak3-server_linux_amd64/files
|
rm -rf /opt/teamspeak3-server_linux_amd64/files
|
||||||
ln -s ${VOLUME}/files /opt/teamspeak3-server_linux_amd64/files
|
ln -s ${VOLUME}/files /opt/teamspeak3-server_linux_amd64/files
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "- Starting TS3-Server..."
|
echo "- Starting TS3-Server..."
|
||||||
if [ -f "${VOLUME}/ts3server.ini" ]; then
|
if [ -f "${VOLUME}/ts3server.ini" ]; then
|
||||||
echo " '${VOLUME}/ts3server.ini' found. Using as config file."
|
echo " '${VOLUME}/ts3server.ini' found. Using as config file."
|
||||||
echo " HINT: If this ini was transfered from another ts3-install you may want"
|
echo " HINT: If this ini was transfered from another ts3-install you may want"
|
||||||
echo " to make sure the following settings are active for the usage of host-mounted volume:"
|
echo " to make sure the following settings are active for the usage of host-mounted volume:"
|
||||||
echo " - query_ip_whitelist='${VOLUME}/query_ip_whitelist.txt'"
|
echo " - query_ip_whitelist='${VOLUME}/query_ip_whitelist.txt'"
|
||||||
echo " - query_ip_backlist='${VOLUME}/query_ip_blacklist.txt'"
|
echo " - query_ip_backlist='${VOLUME}/query_ip_blacklist.txt'"
|
||||||
echo " - logpath='${VOLUME}/logs/'"
|
echo " - logpath='${VOLUME}/logs/'"
|
||||||
echo " - licensepath='${VOLUME}/'"
|
echo " - licensepath='${VOLUME}/'"
|
||||||
echo " - inifile='${VOLUME}/ts3server.ini'"
|
echo " - inifile='${VOLUME}/ts3server.ini'"
|
||||||
/opt/teamspeak3-server_linux_amd64/ts3server_minimal_runscript.sh \
|
/opt/teamspeak3-server_linux_amd64/ts3server_minimal_runscript.sh \
|
||||||
inifile="${VOLUME}/ts3server.ini"
|
inifile="${VOLUME}/ts3server.ini"
|
||||||
else
|
else
|
||||||
echo " '${VOLUME}/ts3server.ini' not found. Creating new config file."
|
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 \
|
||||||
createinifile=1 \
|
createinifile=1 \
|
||||||
inifile="${VOLUME}/ts3server.ini" \
|
inifile="${VOLUME}/ts3server.ini" \
|
||||||
licensepath="${VOLUME}/" \
|
licensepath="${VOLUME}/" \
|
||||||
logpath="${VOLUME}/logs/" \
|
logpath="${VOLUME}/logs/" \
|
||||||
query_ip_backlist="${VOLUME}/query_ip_blacklist.txt" \
|
query_ip_backlist="${VOLUME}/query_ip_blacklist.txt" \
|
||||||
query_ip_whitelist="${VOLUME}/query_ip_whitelist.txt"
|
query_ip_whitelist="${VOLUME}/query_ip_whitelist.txt"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue