• Be part of the TeaParty!
    Click here for more information

Information [Auto]Update script

Nicer

Active member
Hello,
I've created a simple bash script which can update your TeaSpeak instance with ease.

You can get it from my Github:
English: https://github.com/Najsr/TeaSpeak-Updater
Hungarian: https://github.com/dension0/TeaSpeak-Updater-HU
Danish: https://github.com/MikkelDK/TeaSpeak-Updater-DK
Bosnian: https://github.com/kallefrombosnia/TeaSpeak-Updater

If you want to translate the script, make a fork of mine, possibly rename it and then translate it.
Updater has 3 command line parameters:
  • -f / --force - forces update (without prompt)
  • -p path / --path path Sets working path for the script (otherwise executed in the location of the script)
  • -s / --start Starts server after successful update via teastart.sh start (you may add name of script with parameters to change this value)
    * eg: -s tealoop.sh
If you want to use it as an auto-update script, use cron in combination with -f parameter
Feedback is highly welcomed
 
Last edited:

dension

Active member
Premium User
We collect our power with Nicer and update this script.

Now this script use color codes like TeaSpeak Installer, and before update make backup from old config.yml, TeaData.sqlite into TeaSpeakBackup_CURRENT_VERSION.tar.gz file.

I made translated (hungarian) version of updater. You can get it from my Github: https://github.com/dension0/TeaSpeak-Updater-HU
Original (english) version you can get it from Nicer's Github: https://github.com/Najsr/TeaSpeak-Updater
 

csaszilpapa

New member
I did the update but still can not get up. ~Jó lenne ha tudnánk erről magyarul beszélni mert a google fordító így szart se ér.
 

Nicer

Active member
Please use English language in here. If you want Hungarian support, post an issue on the Hungarian version on Github
 

csaszilpapa

New member
Now old version servers do not work with the client. I have the latest server version, it should work with the client. It does not work for me
 

Xanone

New member
Hello,
Do you have any suggestions about auto start of server? I mean when VPS goes down to make it start automatically after VPS is back.
I had something like that for TS3 server but i dont think it will be working :)
Thanks for any help!
 

Nicer

Active member
Bash:
#!/bin/bash


status=$(/teaspeak_location/teastart.sh status)
if [ "$status" != "Server is running" ]
then
#uncomment if yo uhave my updater
#/teaspeak_location/updater.sh -f
/teaspeak_location/teastart.sh start
fi
for cron :)
 
Last edited:

szkuta

Well-known member
1.) cd /usr/lib/systemd/system/
2.) nano Tea*Speak.service
3.)
Code:
[Unit]
Description=TeaSpeak Server
After=network.target
[Service]
WorkingDirectory=/home/Tea*Speak/
User=Tea*Speak
Group=Tea*Speak
Type=forking
ExecStart=/home/Tea*Speak/teastart.sh start
ExecStop=/home/Tea*Speak/teastart.sh stop
PIDFile=/home/Tea*Speak/tpid.pid
RestartSec=15
Restart=always
[Install]
WantedBy=multi-user.target
4.) systemctl enable Tea*Speak

reboot and you are done!
 

Xanone

New member
thank you guys,
but for newbie like me it is not working :p
everytime i restart it i have to start it manually.
EDIT: looks like i started server with teastart_autorestart and now i cant even check status
"You already started you TeaSpeak server over teastart_autorestart.sh"
I really did something wrong xD
Probably thats the reason why autostart script does not work.
 
Last edited: