--- smeserver-teamspeak-server-3.1/createlinks.patch0 2013-03-08 16:48:46.000000000 -0500 +++ smeserver-teamspeak-server-3.1/createlinks 2018-01-18 22:37:00.247000000 -0500 @@ -18,12 +18,19 @@ my $event = 'teamspeak-install'; - +#templates templates2events("/etc/httpd/conf/httpd.conf", $event); +templates2events("/opt/tsweb/config.php", $event); +templates2events("/etc/rc.d/init.d/masq", $event); +templates2events("/opt/tsweb/config.php", "remoteaccess-update"); +#actions event_link("initialize-default-databases", $event, "10"); event_link("teamspeak-install", $event, "20"); +#services +safe_symlink("adjust", "root/etc/e-smith/events/$event/services2adjust/masq"); +safe_symlink("restart", "root/etc/e-smith/events/remoteaccess-update/services2adjust/teamspeak"); safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/teamspeak"); safe_symlink("sigusr1", "root/etc/e-smith/events/$event/services2adjust/httpd-e-smith"); diff -up smeserver-teamspeak-server-3.1/root/etc/e-smith/templates/opt/tsweb/config.php/template-begin.patch0 smeserver-teamspeak-server-3.1/root/etc/e-smith/templates/opt/tsweb/config.php/template-begin --- smeserver-teamspeak-server-3.1/root/etc/e-smith/events/actions/teamspeak-install.patch0 2018-01-18 23:21:50.363000000 -0500 +++ smeserver-teamspeak-server-3.1/root/etc/e-smith/events/actions/teamspeak-install 2018-01-18 23:23:19.871000000 -0500 @@ -11,33 +11,30 @@ DOMAINNAME=$(/sbin/e-smith/db configuration get DomainName) TSPASS=$(/sbin/e-smith/db configuration getprop teamspeak UserPassword) -echo "Dowloading file" -cd /temp -wget ftp://ftp.freenet.de/pub/4players/teamspeak.org/releases/ts2_server_rc2_202319.tar.bz2 -O ts2_server_rc2_202319.tar.bz2 -echo "Decompressing files..." -tar -xjf ts2_server_rc2_202319.tar.bz2 -C /opt -mv -f /opt/tss2_rc2 /opt/teamspeak -mv -f /opt/teamspeak/server_linux /opt/teamspeak/server_linux.old -wget ftp://ftp.freenet.de/pub/4players/teamspeak.org/developer/server/202401/server_linux -O server_linux -#cp -f /usr/share/doc/teamspeak-server-2.0.24.1/Sources/server_linux /opt/teamspeak/ -rm -f /opt/teamspeak/teamspeak2-server_startscript +MACHINE_TYPE=`uname -m` +echo "Downloading files" +if [ ${MACHINE_TYPE} == 'x86_64' ]; then + # 64 bits + wget -q http://dl.4players.de/ts/releases/3.0.13.8/teamspeak3-server_linux_amd64-3.0.13.8.tar.bz2 -O teamspeak3-server_linux-3.0.13.8.tar.bz2 + echo "Decompressing files..." + tar -xjf teamspeak3-server_linux-3.0.13.8.tar.bz2 -C /opt + mv -f /opt/teamspeak3-server_linux_amd64/ /opt/teamspeak + +else + # 32 bits + wget -q http://dl.4players.de/ts/releases/3.0.13.8/teamspeak3-server_linux_x86-3.0.13.8.tar.bz2 -O teamspeak3-server_linux-3.0.13.8.tar.bz2 + echo "Decompressing files..." + tar -xjf teamspeak3-server_linux-3.0.13.8.tar.bz2 -C /opt + mv -f /opt/teamspeak3-server_linux_x86/ /opt/teamspeak +fi echo "Creating user teamspeak..." useradd -M -c 'TeamSpeak Server' -d /opt/teamspeak teamspeak -s /bin/bash -p '$TSPASS' chown -R root:teamspeak /opt/teamspeak chmod 770 /opt/teamspeak -chmod 750 /opt/teamspeak/server_linux -chmod 750 /opt/teamspeak/sqlite_sql /sbin/e-smith/signal-event remoteaccess-update -echo "Restarting Apache..." -/sbin/e-smith/expand-template /opt/tsweb/config.php -/sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf -/etc/rc7.d/S86httpd-e-smith sigusr1 - -echo "Starting the daemon..." -/etc/rc7.d/S98teamspeak start echo " " echo "-------------------------------------------------------------------------------"