From 9738091f1e34b92a982259e0b31659764f42601c Mon Sep 17 00:00:00 2001 From: simono41 Date: Fri, 9 Feb 2018 23:54:03 +0100 Subject: [PATCH] ts3_install-script --- ts3_install-script.sh | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100755 ts3_install-script.sh diff --git a/ts3_install-script.sh b/ts3_install-script.sh new file mode 100755 index 0000000..459c928 --- /dev/null +++ b/ts3_install-script.sh @@ -0,0 +1,31 @@ +#!/bin/bash + +set -ex + +echo "Schritt 1: Nutzer anlegen" + +sudo adduser TeamSpeak --system --home /usr/local/bin/teamspeak3-server_linux_amd64 --disabled-login + +echo "Schritt 2: Als TeamSpeak-User agieren" + +su TeamSpeak --shell /bin/bash + +echo "Schritt 3: Herunterladen und entpacken" + +cd /tmp +wget http://dl.4players.de/ts/releases/3.0.13/teamspeak3-server_linux_amd64-3.0.13.tar.bz2 +tar -xjf teamspeak3-server_linux_amd64-3.0.13.tar.bz2 -C /usr/local/bin/ +rm teamspeak3-server_linux_amd64-3.0.13.tar.bz2 +cd ~ + +echo "Schritt 3: Konfiguration erstellen" + +./ts3server createinifile=1 +touch query_ip_blacklist.txt query_ip_whitelist.txt + +echo "Schritt 4: TS3-Server starten" + +./ts3server_startscript.sh start inifile=ts3server.ini + + +echo "Schritt 5: Token merken"