Skip to content

Instantly share code, notes, and snippets.

@cowboy
Created December 12, 2013 03:09
Show Gist options
  • Save cowboy/7922645 to your computer and use it in GitHub Desktop.
Save cowboy/7922645 to your computer and use it in GitHub Desktop.
Note to self: Upgrade ts3 (teamspeak 3) server on Ubuntu
#!/bin/bash
# 1. download ts3 Server x86 from: http://www.teamspeak.com/?page=downloads
# 2. run this script as root from within /opt/
# notes:
# http://robert.penz.name/296/howto-install-teamspeak-3-server-on-ubuntu-10-04-lucid/
if [[ ! "$1" || ! -e "$1" ]]; then
echo "Usage: $(basename $0) teamspeak3-server_linux-x86-x.y.z.tar.gz"
exit 1
fi
root="/opt"
ts3="$root/teamspeak3-server_linux-x86/"
bak="$root/ts3-bak-$(date "+%Y_%m_%d-%H_%M_%S")/"
/etc/init.d/teamspeak stop
cp -R "$ts3" "$bak"
tar xzf "$1" --overwrite --directory "$root"
chown -R teamspeak:teamspeak "$ts3"
/etc/init.d/teamspeak start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment