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

Annotation of /rpms/smeserver-teamspeak-server/contribs8/smeserver-teamspeak-server-3.1-patch0.patch

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


Revision 1.1 - (hide annotations) (download)
Thu Jun 20 20:51:28 2013 UTC (11 years, 5 months ago) by unnilennium
Branch: MAIN
CVS Tags: HEAD
Prep for import

1 unnilennium 1.1 diff -up smeserver-teamspeak-server-3.1/createlinks.patch0 smeserver-teamspeak-server-3.1/createlinks
2     --- smeserver-teamspeak-server-3.1/createlinks.patch0 2013-03-08 16:48:46.000000000 -0500
3     +++ smeserver-teamspeak-server-3.1/createlinks 2013-03-08 18:35:18.000000000 -0500
4     @@ -18,16 +18,25 @@ service_link_enhanced("teamspeak", "K10"
5    
6     my $event = 'teamspeak-install';
7    
8     -
9     +#tempaltes
10     templates2events("/etc/httpd/conf/httpd.conf", $event);
11     +templates2events("/opt/tsweb/config.php", $event);
12     +templates2events("/etc/rc.d/init.d/masq", $event);
13     +templates2events("/opt/tsweb/config.php", "remoteaccess-update");
14     +
15     +
16    
17     +#actions
18     event_link("initialize-default-databases", $event, "10");
19     event_link("teamspeak-install", $event, "20");
20    
21     +
22     +# services
23     +safe_symlink("adjust", "root/etc/e-smith/events/$event/services2adjust/masq");
24     safe_symlink("start", "root/etc/e-smith/events/$event/services2adjust/teamspeak");
25     safe_symlink("sigusr1", "root/etc/e-smith/events/$event/services2adjust/httpd-e-smith");
26    
27     -
28     +safe_symlink("restart", "root/etc/e-smith/events/remoteaccess-update/services2adjust/teamspeak");
29    
30    
31    
32     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
33     --- smeserver-teamspeak-server-3.1/root/etc/e-smith/events/actions/teamspeak-install.patch0 2013-03-08 16:44:58.000000000 -0500
34     +++ smeserver-teamspeak-server-3.1/root/etc/e-smith/events/actions/teamspeak-install 2013-03-08 18:26:07.000000000 -0500
35     @@ -11,39 +11,42 @@ SRVNAME=$(/sbin/e-smith/db configuration
36     DOMAINNAME=$(/sbin/e-smith/db configuration get DomainName)
37     TSPASS=$(/sbin/e-smith/db configuration getprop teamspeak UserPassword)
38    
39     -echo "Dowloading file"
40     -cd /temp
41     -wget ftp://ftp.freenet.de/pub/4players/teamspeak.org/releases/ts2_server_rc2_202319.tar.bz2 -O ts2_server_rc2_202319.tar.bz2
42     +echo "Dowloading files"
43     +cd /tmp
44     +wget -q ftp://ftp.freenet.de/pub/4players/teamspeak.org/releases/ts2_server_rc2_202319.tar.bz2 -O ts2_server_rc2_202319.tar.bz2
45     echo "Decompressing files..."
46     tar -xjf ts2_server_rc2_202319.tar.bz2 -C /opt
47     mv -f /opt/tss2_rc2 /opt/teamspeak
48     +echo "Updating to latest teamspeak 2";
49     mv -f /opt/teamspeak/server_linux /opt/teamspeak/server_linux.old
50     -wget ftp://ftp.freenet.de/pub/4players/teamspeak.org/developer/server/202401/server_linux -O server_linux
51     -#cp -f /usr/share/doc/teamspeak-server-2.0.24.1/Sources/server_linux /opt/teamspeak/
52     +wget -q ftp://ftp.freenet.de/pub/4players/teamspeak.org/developer/server/202401/server_linux -O server_linux
53     +cp -f server_linux /opt/teamspeak/server_linux
54     rm -f /opt/teamspeak/teamspeak2-server_startscript
55    
56     -echo "Creating user teamspeak..."
57     -useradd -M -c 'TeamSpeak Server' -d /opt/teamspeak teamspeak -s /bin/bash -p '$TSPASS'
58     +echo "Creating user teamspeak password..."
59     +usermod -p '$TSPASS' teamspeak
60     +echo "modifying files permissions..."
61     chown -R root:teamspeak /opt/teamspeak
62     chmod 770 /opt/teamspeak
63     chmod 750 /opt/teamspeak/server_linux
64     chmod 750 /opt/teamspeak/sqlite_sql
65    
66     -/sbin/e-smith/signal-event remoteaccess-update
67     +#/sbin/e-smith/signal-event remoteaccess-update
68    
69     -echo "Restarting Apache..."
70     -/sbin/e-smith/expand-template /opt/tsweb/config.php
71     -/sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf
72     -/etc/rc7.d/S86httpd-e-smith sigusr1
73     +#echo "Restarting Apache..."
74     +#/sbin/e-smith/expand-template /opt/tsweb/config.php
75     +#/sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf
76     +#service httpd-e-smith restart
77    
78     -echo "Starting the daemon..."
79     -/etc/rc7.d/S98teamspeak start
80     +#echo "Starting the daemon..."
81     +#service teamspeak restart
82    
83     echo " "
84     echo "-------------------------------------------------------------------------------"
85     echo "TeamSpeak Server installation finished."
86     -echo "You can access to the configuration page at: http://$SRVNAME:14534"
87     -/etc/rc7.d/S98teamspeak passwords
88     +echo "You can access to the configuration page at: http://$SRVNAME:14534 "
89     +echo "and http://$SRVNAME:14534/slogin.html (for superadmin)"
90     +service teamspeak passwords
91     echo " "
92     echo "The web page for teamspeak webusers: http://$DOMAINNAME/tsweb"
93     echo " "
94     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

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