diff -up smeserver-teamspeak-server-3.1/createlinks.patch0 smeserver-teamspeak-server-3.1/createlinks --- smeserver-teamspeak-server-3.1/createlinks.patch0 2013-03-08 16:48:46.000000000 -0500 +++ smeserver-teamspeak-server-3.1/createlinks 2013-03-08 18:35:18.000000000 -0500 @@ -18,16 +18,25 @@ service_link_enhanced("teamspeak", "K10" my $event = 'teamspeak-install'; - +#tempaltes 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("start", "root/etc/e-smith/events/$event/services2adjust/teamspeak"); safe_symlink("sigusr1", "root/etc/e-smith/events/$event/services2adjust/httpd-e-smith"); - +safe_symlink("restart", "root/etc/e-smith/events/remoteaccess-update/services2adjust/teamspeak"); diff -up smeserver-teamspeak-server-3.1/root/etc/e-smith/events/actions/teamspeak-install.patch0 smeserver-teamspeak-server-3.1/root/etc/e-smith/events/actions/teamspeak-install --- smeserver-teamspeak-server-3.1/root/etc/e-smith/events/actions/teamspeak-install.patch0 2013-03-08 16:44:58.000000000 -0500 +++ smeserver-teamspeak-server-3.1/root/etc/e-smith/events/actions/teamspeak-install 2013-03-08 18:26:07.000000000 -0500 @@ -11,39 +11,42 @@ SRVNAME=$(/sbin/e-smith/db configuration 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 "Dowloading files" +cd /tmp +wget -q 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 +echo "Updating to latest teamspeak 2"; 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/ +wget -q ftp://ftp.freenet.de/pub/4players/teamspeak.org/developer/server/202401/server_linux -O server_linux +cp -f server_linux /opt/teamspeak/server_linux rm -f /opt/teamspeak/teamspeak2-server_startscript -echo "Creating user teamspeak..." -useradd -M -c 'TeamSpeak Server' -d /opt/teamspeak teamspeak -s /bin/bash -p '$TSPASS' +echo "Creating user teamspeak password..." +usermod -p '$TSPASS' teamspeak +echo "modifying files permissions..." 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 +#/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 "Restarting Apache..." +#/sbin/e-smith/expand-template /opt/tsweb/config.php +#/sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf +#service httpd-e-smith restart -echo "Starting the daemon..." -/etc/rc7.d/S98teamspeak start +#echo "Starting the daemon..." +#service teamspeak restart echo " " echo "-------------------------------------------------------------------------------" echo "TeamSpeak Server installation finished." -echo "You can access to the configuration page at: http://$SRVNAME:14534" -/etc/rc7.d/S98teamspeak passwords +echo "You can access to the configuration page at: http://$SRVNAME:14534 " +echo "and http://$SRVNAME:14534/slogin.html (for superadmin)" +service teamspeak passwords echo " " echo "The web page for teamspeak webusers: http://$DOMAINNAME/tsweb" echo " " 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