/[smecontribs]/rpms/smeserver-teamspeak-server/contribs9/smeserver-teamspeak-server-3.1-patch0.patch
ViewVC logotype

Diff of /rpms/smeserver-teamspeak-server/contribs9/smeserver-teamspeak-server-3.1-patch0.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

Revision 1.1 by jpp, Fri Jan 19 03:16:22 2018 UTC Revision 1.2 by jpp, Fri Jan 19 04:28:08 2018 UTC
# Line 1  Line 1 
 diff -up smeserver-teamspeak-server-3.1/createlinks.patch0 smeserver-teamspeak-server-3.1/createlinks  
1  --- smeserver-teamspeak-server-3.1/createlinks.patch0   2013-03-08 16:48:46.000000000 -0500  --- smeserver-teamspeak-server-3.1/createlinks.patch0   2013-03-08 16:48:46.000000000 -0500
2  +++ smeserver-teamspeak-server-3.1/createlinks  2013-03-08 18:35:18.000000000 -0500  +++ smeserver-teamspeak-server-3.1/createlinks  2018-01-18 22:37:00.247000000 -0500
3  @@ -18,16 +18,25 @@ service_link_enhanced("teamspeak", "K10"  @@ -18,12 +18,19 @@
4    
5   my $event = 'teamspeak-install';   my $event = 'teamspeak-install';
6    
7  -  -
8  +#tempaltes  +#templates
9   templates2events("/etc/httpd/conf/httpd.conf", $event);   templates2events("/etc/httpd/conf/httpd.conf", $event);
10  +templates2events("/opt/tsweb/config.php", $event);  +templates2events("/opt/tsweb/config.php", $event);
11  +templates2events("/etc/rc.d/init.d/masq", $event);  +templates2events("/etc/rc.d/init.d/masq", $event);
12  +templates2events("/opt/tsweb/config.php", "remoteaccess-update");  +templates2events("/opt/tsweb/config.php", "remoteaccess-update");
 +  
 +  
13    
14  +#actions  +#actions
15   event_link("initialize-default-databases", $event, "10");   event_link("initialize-default-databases", $event, "10");
16   event_link("teamspeak-install", $event, "20");   event_link("teamspeak-install", $event, "20");
17    
18  +  +#services
 +# services  
19  +safe_symlink("adjust", "root/etc/e-smith/events/$event/services2adjust/masq");  +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");  
   
 -  
20  +safe_symlink("restart", "root/etc/e-smith/events/remoteaccess-update/services2adjust/teamspeak");  +safe_symlink("restart", "root/etc/e-smith/events/remoteaccess-update/services2adjust/teamspeak");
21     safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/teamspeak");
22     safe_symlink("sigusr1", "root/etc/e-smith/events/$event/services2adjust/httpd-e-smith");
23    
24    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
25    --- smeserver-teamspeak-server-3.1/root/etc/e-smith/events/actions/teamspeak-install.patch0     2018-01-18 23:21:50.363000000 -0500
26  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    2018-01-18 23:23:19.871000000 -0500
27  --- smeserver-teamspeak-server-3.1/root/etc/e-smith/events/actions/teamspeak-install.patch0     2013-03-08 16:44:58.000000000 -0500  @@ -11,33 +11,30 @@
 +++ 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  
28   DOMAINNAME=$(/sbin/e-smith/db configuration get DomainName)   DOMAINNAME=$(/sbin/e-smith/db configuration get DomainName)
29   TSPASS=$(/sbin/e-smith/db configuration getprop teamspeak UserPassword)   TSPASS=$(/sbin/e-smith/db configuration getprop teamspeak UserPassword)
30    
31  -echo "Dowloading file"  -echo "Dowloading file"
32  -cd /temp  -cd /temp
33  -wget ftp://ftp.freenet.de/pub/4players/teamspeak.org/releases/ts2_server_rc2_202319.tar.bz2 -O ts2_server_rc2_202319.tar.bz2  -wget ftp://ftp.freenet.de/pub/4players/teamspeak.org/releases/ts2_server_rc2_202319.tar.bz2 -O ts2_server_rc2_202319.tar.bz2
34  +echo "Dowloading files"  -echo "Decompressing files..."
35  +cd /tmp  -tar -xjf ts2_server_rc2_202319.tar.bz2 -C /opt
36  +wget -q ftp://ftp.freenet.de/pub/4players/teamspeak.org/releases/ts2_server_rc2_202319.tar.bz2 -O ts2_server_rc2_202319.tar.bz2  -mv -f /opt/tss2_rc2 /opt/teamspeak
37   echo "Decompressing files..."  -mv -f /opt/teamspeak/server_linux  /opt/teamspeak/server_linux.old
  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  
38  -wget ftp://ftp.freenet.de/pub/4players/teamspeak.org/developer/server/202401/server_linux -O server_linux  -wget ftp://ftp.freenet.de/pub/4players/teamspeak.org/developer/server/202401/server_linux -O server_linux
39  -#cp -f /usr/share/doc/teamspeak-server-2.0.24.1/Sources/server_linux /opt/teamspeak/  -#cp -f /usr/share/doc/teamspeak-server-2.0.24.1/Sources/server_linux /opt/teamspeak/
40  +wget -q ftp://ftp.freenet.de/pub/4players/teamspeak.org/developer/server/202401/server_linux -O server_linux  -rm -f /opt/teamspeak/teamspeak2-server_startscript
41  +cp -f server_linux /opt/teamspeak/server_linux  +MACHINE_TYPE=`uname -m`
42   rm -f /opt/teamspeak/teamspeak2-server_startscript  +echo "Downloading files"
43    +if [ ${MACHINE_TYPE} == 'x86_64' ]; then
44  -echo "Creating user teamspeak..."  +       # 64 bits
45  -useradd -M -c 'TeamSpeak Server' -d /opt/teamspeak teamspeak -s /bin/bash -p '$TSPASS'  +       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
46  +echo "Creating user teamspeak password..."  +       echo "Decompressing files..."
47  +usermod -p '$TSPASS' teamspeak  +       tar -xjf teamspeak3-server_linux-3.0.13.8.tar.bz2 -C /opt
48  +echo "modifying files permissions..."  +       mv -f /opt/teamspeak3-server_linux_amd64/ /opt/teamspeak
49    +
50    +else
51    +       # 32 bits
52    +       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
53    +        echo "Decompressing files..."
54    +        tar -xjf teamspeak3-server_linux-3.0.13.8.tar.bz2 -C /opt
55    +        mv -f /opt/teamspeak3-server_linux_x86/ /opt/teamspeak
56    +fi
57    
58     echo "Creating user teamspeak..."
59     useradd -M -c 'TeamSpeak Server' -d /opt/teamspeak teamspeak -s /bin/bash -p '$TSPASS'
60   chown -R root:teamspeak /opt/teamspeak   chown -R root:teamspeak /opt/teamspeak
61   chmod 770 /opt/teamspeak   chmod 770 /opt/teamspeak
62   chmod 750 /opt/teamspeak/server_linux  -chmod 750 /opt/teamspeak/server_linux
63   chmod 750 /opt/teamspeak/sqlite_sql  -chmod 750 /opt/teamspeak/sqlite_sql
64    
65  -/sbin/e-smith/signal-event remoteaccess-update   /sbin/e-smith/signal-event remoteaccess-update
 +#/sbin/e-smith/signal-event remoteaccess-update  
66    
67  -echo "Restarting Apache..."  -echo "Restarting Apache..."
68  -/sbin/e-smith/expand-template /opt/tsweb/config.php  -/sbin/e-smith/expand-template /opt/tsweb/config.php
69  -/sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf  -/sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf
70  -/etc/rc7.d/S86httpd-e-smith sigusr1  -/etc/rc7.d/S86httpd-e-smith sigusr1
71  +#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  
   
72  -echo "Starting the daemon..."  -echo "Starting the daemon..."
73  -/etc/rc7.d/S98teamspeak start  -/etc/rc7.d/S98teamspeak start
 +#echo "Starting the daemon..."  
 +#service teamspeak restart  
74    
75   echo " "   echo " "
76   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  


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed