]>
Commit | Line | Data |
---|---|---|
03129a5b MT |
1 | #!/bin/bash |
2 | ############################################################################ | |
3 | # # | |
4 | # This file is part of the IPFire Firewall. # | |
5 | # # | |
6 | # IPFire is free software; you can redistribute it and/or modify # | |
7 | # it under the terms of the GNU General Public License as published by # | |
8 | # the Free Software Foundation; either version 2 of the License, or # | |
9 | # (at your option) any later version. # | |
10 | # # | |
11 | # IPFire is distributed in the hope that it will be useful, # | |
12 | # but WITHOUT ANY WARRANTY; without even the implied warranty of # | |
13 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # | |
14 | # GNU General Public License for more details. # | |
15 | # # | |
16 | # You should have received a copy of the GNU General Public License # | |
17 | # along with IPFire; if not, write to the Free Software # | |
18 | # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # | |
19 | # # | |
20 | # Copyright (C) 2008 IPFire-Team <info@ipfire.org>. # | |
21 | # # | |
22 | ############################################################################ | |
23 | # | |
24 | . /opt/pakfire/lib/functions.sh | |
25 | ||
26 | extract_files | |
27 | ||
28 | [ -d /opt/teamspeak ] || mkdir -p /opt/teamspeak | |
29 | ||
30 | cd /tmp | |
31 | wget -c ftp://ftp.freenet.de/pub/4players/teamspeak.org/releases/ts2_server_rc2_202319.tar.bz2 \ | |
32 | ftp://ftp.freenet.de/pub/4players/teamspeak.org/developer/server/202401/server_linux | |
33 | ||
34 | tar xvfj ts2_server_rc2_202319.tar.bz2 -C /tmp | |
35 | ||
36 | cp -av /tmp/tss2_rc2/* /opt/teamspeak | |
37 | mv /tmp/server_linux /opt/teamspeak/server_linux | |
38 | chmod 755 -v /opt/teamspeak/server_linux | |
39 | ||
40 | rm -rf /tmp/tss2_rc2 ts2_server_rc2_202319.tar.bz2 | |
41 | ||
42 | groupadd teamspeak | |
43 | useradd -g teamspeak teamspeak | |
44 | ||
45 | chown teamspeak.teamspeak /opt/teamspeak -Rv | |
46 | ||
5c981649 | 47 | restore_backup ${NAME} |
03129a5b MT |
48 | start_service --background ${NAME} |
49 | ||
50 | ln -sf ../init.d/teamspeak /etc/rc.d/rc0.d/K00teamspeak | |
51 | ln -sf ../init.d/teamspeak /etc/rc.d/rc3.d/S99teamspeak | |
52 | ln -sf ../init.d/teamspeak /etc/rc.d/rc6.d/K00teamspeak | |
5c981649 AF |
53 | |
54 |