Skip to content

Commit 9f12733

Browse files
push-app-to-main[bot]tremor021MickLesk
authored
Teamspeak-Server (#6121)
Co-authored-by: push-app-to-main[bot] <203845782+push-app-to-main[bot]@users.noreply.github.com> Co-authored-by: Slaviša Arežina <58952836+tremor021@users.noreply.github.com> Co-authored-by: CanbiZ <47820557+MickLesk@users.noreply.github.com>
1 parent e675638 commit 9f12733

4 files changed

Lines changed: 164 additions & 0 deletions

File tree

ct/headers/teamspeak-server

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
______ __ _____
2+
/_ __/__ ____ _____ ___ _________ ___ ____ _/ /__ / ___/___ ______ _____ _____
3+
/ / / _ \/ __ `/ __ `__ \/ ___/ __ \/ _ \/ __ `/ //_/_____\__ \/ _ \/ ___/ | / / _ \/ ___/
4+
/ / / __/ /_/ / / / / / (__ ) /_/ / __/ /_/ / ,< /_____/__/ / __/ / | |/ / __/ /
5+
/_/ \___/\__,_/_/ /_/ /_/____/ .___/\___/\__,_/_/|_| /____/\___/_/ |___/\___/_/
6+
/_/

ct/teamspeak-server.sh

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
#!/usr/bin/env bash
2+
source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/build.func)
3+
# Copyright (c) 2021-2025 community-scripts ORG
4+
# Author: tremor021 (Slaviša Arežina)
5+
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
6+
# Source: https://teamspeak.com/en/
7+
8+
APP="Teamspeak-Server"
9+
var_tags="${var_tags:-voice;communication}"
10+
var_cpu="${var_cpu:-1}"
11+
var_ram="${var_ram:-512}"
12+
var_disk="${var_disk:-2}"
13+
var_os="${var_os:-debian}"
14+
var_version="${var_version:-12}"
15+
var_unprivileged="${var_unprivileged:-1}"
16+
17+
header_info "$APP"
18+
variables
19+
color
20+
catch_errors
21+
22+
function update_script() {
23+
header_info
24+
check_container_storage
25+
check_container_resources
26+
if [[ ! -d /opt/teamspeak-server ]]; then
27+
msg_error "No ${APP} Installation Found!"
28+
exit
29+
fi
30+
31+
RELEASE=$(curl -fsSL https://teamspeak.com/en/downloads/#server | grep -oP 'teamspeak3-server_linux_amd64-\K[0-9]+\.[0-9]+\.[0-9]+' | head -1)
32+
if [[ "${RELEASE}" != "$(cat ~/.teamspeak-server 2>/dev/null)" ]] || [[ ! -f ~/.teamspeak-server ]]; then
33+
msg_info "Stopping Service"
34+
systemctl stop teamspeak-server
35+
msg_ok "Stopped Service"
36+
37+
msg_info "Updating ${APP}"
38+
curl -fsSL "https://files.teamspeak-services.com/releases/server/${RELEASE}/teamspeak3-server_linux_amd64-${RELEASE}.tar.bz2" -o ts3server.tar.bz2
39+
tar -xf ./ts3server.tar.bz2
40+
cp -ru teamspeak3-server_linux_amd64/* /opt/teamspeak-server/
41+
rm -f ~/ts3server.tar.bz*
42+
echo "${RELEASE}" >~/.teamspeak-server
43+
msg_ok "Updated $APP"
44+
45+
msg_info "Starting Service"
46+
systemctl start teamspeak-server
47+
msg_ok "Started Service"
48+
49+
msg_ok "Updated Successfully"
50+
else
51+
msg_ok "Already up to date"
52+
fi
53+
exit
54+
}
55+
56+
start
57+
build_container
58+
description
59+
60+
msg_ok "Completed Successfully!\n"
61+
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
62+
echo -e "${INFO}${YW} Access it using the following URL:${CL}"
63+
echo -e "${TAB}${GATEWAY}${BGN}${IP}:9987${CL}"
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
{
2+
"name": "Teamspeak Server",
3+
"slug": "teamspeak-server",
4+
"categories": [
5+
24
6+
],
7+
"date_created": "2025-07-21",
8+
"type": "ct",
9+
"updateable": true,
10+
"privileged": false,
11+
"interface_port": 9987,
12+
"documentation": "https://support.teamspeak.com/hc/en-us/categories/360000302017-TeamSpeak-3",
13+
"website": "https://teamspeak.com/",
14+
"logo": "https://cdn.jsdelivr.net/gh/selfhst/icons/svg/teamspeak-light.svg",
15+
"config_path": "",
16+
"description": "TeamSpeak is a voice‑over‑IP (VoIP) application, primarily used by gamers and teams to chat in real‑time on dedicated servers. It delivers crystal‑clear, low‑latency voice communication.""install_methods": [
17+
{
18+
"type": "default",
19+
"script": "ct/teamspeak-server.sh",
20+
"resources": {
21+
"cpu": 1,
22+
"ram": 512,
23+
"hdd": 2,
24+
"os": "debian",
25+
"version": "12"
26+
}
27+
}
28+
],
29+
"default_credentials": {
30+
"username": null,
31+
"password": null
32+
},
33+
"notes": [
34+
{
35+
"text": "Use `journalctl -u teamspeak-server.service` inside LXC console to check for admin credentials!",
36+
"type": "info"
37+
}
38+
]
39+
}
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
#!/usr/bin/env bash
2+
3+
# Copyright (c) 2021-2025 community-scripts ORG
4+
# Author: tremor021 (Slaviša Arežina)
5+
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
6+
# Source: https://teamspeak.com/en/
7+
8+
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
9+
color
10+
verb_ip6
11+
catch_errors
12+
setting_up_container
13+
network_check
14+
update_os
15+
16+
RELEASE=$(curl -fsSL https://teamspeak.com/en/downloads/#server | grep -oP 'teamspeak3-server_linux_amd64-\K[0-9]+\.[0-9]+\.[0-9]+' | head -1)
17+
18+
msg_info "Setting up Teamspeak Server"
19+
curl -fsSL "https://files.teamspeak-services.com/releases/server/${RELEASE}/teamspeak3-server_linux_amd64-${RELEASE}.tar.bz2" -o ts3server.tar.bz2
20+
tar -xf ./ts3server.tar.bz2
21+
mv teamspeak3-server_linux_amd64/ /opt/teamspeak-server/
22+
touch /opt/teamspeak-server/.ts3server_license_accepted
23+
echo "${RELEASE}" >~/.teamspeak-server
24+
msg_ok "Setup Teamspeak Server"
25+
26+
msg_info "Creating service"
27+
cat <<EOF >/etc/systemd/system/teamspeak-server.service
28+
[Unit]
29+
Description=TeamSpeak3 Server
30+
Wants=network-online.target
31+
After=network.target
32+
33+
[Service]
34+
WorkingDirectory=/opt/teamspeak-server
35+
User=root
36+
Type=forking
37+
ExecStart=/opt/teamspeak-server/ts3server_startscript.sh start
38+
ExecStop=/opt/teamspeak-server/ts3server_startscript.sh stop
39+
ExecReload=/opt/teamspeak-server/ts3server_startscript.sh restart
40+
Restart=always
41+
RestartSec=15
42+
43+
[Install]
44+
WantedBy=multi-user.target
45+
EOF
46+
systemctl enable -q --now teamspeak-server
47+
msg_ok "Created service"
48+
49+
motd_ssh
50+
customize
51+
52+
msg_info "Cleaning up"
53+
rm -f ~/ts3server.tar.bz*
54+
$STD apt-get -y autoremove
55+
$STD apt-get -y autoclean
56+
msg_ok "Cleaned"

0 commit comments

Comments
 (0)