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

Annotation 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


Revision 1.2 - (hide annotations) (download)
Fri Jan 19 04:28:08 2018 UTC (6 years, 9 months ago) by jpp
Branch: MAIN
CVS Tags: smeserver-teamspeak-server-3_1-1_el6_sme, smeserver-teamspeak-server-3_1-2_el6_sme, HEAD
Changes since 1.1: +38 -56 lines
* Thu Jan 18 2018 Jean-Philipe Pialasse <tests@pialasse.com> 3.1-1.sme
- fix [SME: 10494]
- update to download TS3 with event

1 jpp 1.1 --- smeserver-teamspeak-server-3.1/createlinks.patch0 2013-03-08 16:48:46.000000000 -0500
2 jpp 1.2 +++ smeserver-teamspeak-server-3.1/createlinks 2018-01-18 22:37:00.247000000 -0500
3     @@ -18,12 +18,19 @@
4 jpp 1.1
5     my $event = 'teamspeak-install';
6    
7     -
8 jpp 1.2 +#templates
9 jpp 1.1 templates2events("/etc/httpd/conf/httpd.conf", $event);
10     +templates2events("/opt/tsweb/config.php", $event);
11     +templates2events("/etc/rc.d/init.d/masq", $event);
12     +templates2events("/opt/tsweb/config.php", "remoteaccess-update");
13    
14     +#actions
15     event_link("initialize-default-databases", $event, "10");
16     event_link("teamspeak-install", $event, "20");
17    
18 jpp 1.2 +#services
19 jpp 1.1 +safe_symlink("adjust", "root/etc/e-smith/events/$event/services2adjust/masq");
20 jpp 1.2 +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 jpp 1.1 safe_symlink("sigusr1", "root/etc/e-smith/events/$event/services2adjust/httpd-e-smith");
23    
24 jpp 1.2 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     +++ smeserver-teamspeak-server-3.1/root/etc/e-smith/events/actions/teamspeak-install 2018-01-18 23:23:19.871000000 -0500
27     @@ -11,33 +11,30 @@
28 jpp 1.1 DOMAINNAME=$(/sbin/e-smith/db configuration get DomainName)
29     TSPASS=$(/sbin/e-smith/db configuration getprop teamspeak UserPassword)
30    
31     -echo "Dowloading file"
32     -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
34 jpp 1.2 -echo "Decompressing files..."
35     -tar -xjf ts2_server_rc2_202319.tar.bz2 -C /opt
36     -mv -f /opt/tss2_rc2 /opt/teamspeak
37     -mv -f /opt/teamspeak/server_linux /opt/teamspeak/server_linux.old
38 jpp 1.1 -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/
40 jpp 1.2 -rm -f /opt/teamspeak/teamspeak2-server_startscript
41     +MACHINE_TYPE=`uname -m`
42     +echo "Downloading files"
43     +if [ ${MACHINE_TYPE} == 'x86_64' ]; then
44     + # 64 bits
45     + 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 "Decompressing files..."
47     + tar -xjf teamspeak3-server_linux-3.0.13.8.tar.bz2 -C /opt
48     + 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 jpp 1.1 chown -R root:teamspeak /opt/teamspeak
61     chmod 770 /opt/teamspeak
62 jpp 1.2 -chmod 750 /opt/teamspeak/server_linux
63     -chmod 750 /opt/teamspeak/sqlite_sql
64 jpp 1.1
65 jpp 1.2 /sbin/e-smith/signal-event remoteaccess-update
66 jpp 1.1
67     -echo "Restarting Apache..."
68     -/sbin/e-smith/expand-template /opt/tsweb/config.php
69     -/sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf
70     -/etc/rc7.d/S86httpd-e-smith sigusr1
71 jpp 1.2 -
72 jpp 1.1 -echo "Starting the daemon..."
73     -/etc/rc7.d/S98teamspeak start
74    
75     echo " "
76     echo "-------------------------------------------------------------------------------"

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