]> git.ipfire.org Git - ipfire-2.x.git/blame - src/paks/teamspeak/install.sh
asterisk: sqlite is not an add-on package any more
[ipfire-2.x.git] / src / paks / teamspeak / install.sh
CommitLineData
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
26extract_files
27
28[ -d /opt/teamspeak ] || mkdir -p /opt/teamspeak
29
30cd /tmp
31wget -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
34tar xvfj ts2_server_rc2_202319.tar.bz2 -C /tmp
35
36cp -av /tmp/tss2_rc2/* /opt/teamspeak
37mv /tmp/server_linux /opt/teamspeak/server_linux
38chmod 755 -v /opt/teamspeak/server_linux
39
40rm -rf /tmp/tss2_rc2 ts2_server_rc2_202319.tar.bz2
41
42groupadd teamspeak
43useradd -g teamspeak teamspeak
44
45chown teamspeak.teamspeak /opt/teamspeak -Rv
46
5c981649 47restore_backup ${NAME}
03129a5b
MT
48start_service --background ${NAME}
49
50ln -sf ../init.d/teamspeak /etc/rc.d/rc0.d/K00teamspeak
51ln -sf ../init.d/teamspeak /etc/rc.d/rc3.d/S99teamspeak
52ln -sf ../init.d/teamspeak /etc/rc.d/rc6.d/K00teamspeak
5c981649
AF
53
54