Here’s a short TeamSpeak3 server update script that I am using from now on. It just needs the url for the archive as a parameter. One has to stop the service first and start it after the script completed. The copy command copies the downloaded files to ts3/ which is the directory where the actual ts3 server is located. Obviously this has to be adjusted.

#!/bin/sh
if [ $# -eq 0 ]
  then
    echo "Add url parameter to download"
    exit
fi
mkdir ts3_dl
wget $1 -P ts3_dl
tar -xjf ts3_dl/teamspeak3*.tar.bz2 -C ts3_dl
cp -r ts3_dl/teamspeak3*/* ts3/
rm -r ts3_dl


Leave a Reply

Your email address will not be published. Required fields are marked *