11#! /bin/bash
2- # TravisCI Tests: Teamspeak 3
3- # Server Management Script
2+ # Project: Game Server Managers - LinuxGSM
43# Author: Daniel Gibbs
4+ # License: MIT License, Copyright (c) 2017 Daniel Gibbs
5+ # Purpose: TravisCI Tests: Teamspeak 3 | Server Management Script
6+ # Contributors: https://github.com/GameServerManagers/LinuxGSM/graphs/contributors
7+ # Documentation: https://github.com/GameServerManagers/LinuxGSM/wiki
58# Website: https://gameservermanagers.com
6- version=" 101716"
79
10+ # Debugging
811if [ -f " .dev-debug" ]; then
912 exec 5> dev-debug.log
1013 BASH_XTRACEFD=" 5"
1114 set -x
1215fi
1316
14- # ### Variables ####
17+ version= " 170128 "
1518
16- # Notification Alerts
17- # (on|off)
19+ # #########################
20+ # ####### Settings ########
21+ # #########################
22+
23+ # # Server Start Settings | https://github.com/GameServerManagers/LinuxGSM/wiki/Start-Parameters
24+ # Edit serverfiles/ts3-server.ini after installation
1825
19- # Email
26+ # ### LinuxGSM Settings ####
27+
28+ # # Notification Alerts
29+ # (on|off)
30+ # Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
2031emailalert=" off"
213222- 33+ emailfrom=" "
2334
24- # Pushbullet
25- # https://www.pushbullet.com/#settings
35+ # Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
2636pushbulletalert=" off"
2737pushbullettoken=" accesstoken"
38+ channeltag=" "
2839
29- # Start Variables
40+ # # Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
3041updateonstart=" off"
3142
43+ # # Backup | https://github.com/GameServerManagers/LinuxGSM/wiki/Backup
44+ maxbackups=" 4"
45+ maxbackupdays=" 30"
46+ stoponbackup=" on"
3247
33- fn_parms (){
34- parms= " "
35- }
48+ # # Logging | https://github.com/GameServerManagers/LinuxGSM/wiki/Logging
49+ consolelogging= " on "
50+ logdays= " 7 "
3651
37- # ### Advanced Variables ####
52+ # ### LinuxGSM Advanced Settings ####
3853
39- # Github Branch Select
54+ # # Github Branch Select
4055# Allows for the use of different function files
4156# from a different repo and/or branch.
4257githubuser=" GameServerManagers"
4358githubrepo=" LinuxGSM"
4459githubbranch=" $TRAVIS_BRANCH "
4560
46- # Server Details
47- gamename=" Teamspeak 3"
48- servername=" Teamspeak 3 Server"
61+ # # LinuxGSM Server Details
62+ # Do not edit
63+ gamename=" TeamSpeak 3"
64+ servername=" TeamSpeak 3 Server"
65+
66+ # # Service Name | https://github.com/GameServerManagers/LinuxGSM/wiki/Multiple-Servers
4967servicename=" ts3-server"
5068
51- # Directories
69+ # ### Directories ####
70+ # Edit with care
71+
72+ # # Work Directories
5273rootdir=" $( dirname $( readlink -f " ${BASH_SOURCE[0]} " ) ) "
5374selfname=" $( basename $( readlink -f " ${BASH_SOURCE[0]} " ) ) "
5475lockselfname=" .${servicename} .lock"
@@ -57,27 +78,32 @@ functionsdir="${lgsmdir}/functions"
5778libdir=" ${lgsmdir} /lib"
5879tmpdir=" ${lgsmdir} /tmp"
5980filesdir=" ${rootdir} /serverfiles"
81+
82+ # # Server Specific Directories
6083systemdir=" ${filesdir} "
6184executabledir=" ${filesdir} "
6285executable=" ./ts3server_startscript.sh"
6386servercfg=" ${servicename} .ini"
6487servercfgdefault=" ts3server.ini"
6588servercfgdir=" ${filesdir} "
6689servercfgfullpath=" ${servercfgdir} /${servercfg} "
90+
91+ # # Backup Directory
6792backupdir=" ${rootdir} /backups"
6893
69- # Logging
70- logdays=" 7"
94+ # # Logging Directories
7195gamelogdir=" ${filesdir} /logs"
7296scriptlogdir=" ${rootdir} /log/script"
73-
7497scriptlog=" ${scriptlogdir} /${servicename} -script.log"
7598emaillog=" ${scriptlogdir} /${servicename} -email.log"
7699
77- scriptlogdate=" ${scriptlogdir} /${servicename} -script-$( date ' +%d-%m-%Y-%H-%M-%S' ) .log"
100+ # # Logs Naming
101+ scriptlogdate=" ${scriptlogdir} /${servicename} -script-$( date ' +%Y-%m-%d-%H:%M:%S' ) .log"
78102
79- # #### Script #####
80- # Do not edit
103+ # #######################
104+ # ####### Script ########
105+ # ##### Do not edit #####
106+ # #######################
81107
82108# Fetches core_dl for file downloads
83109fn_fetch_core_dl (){
0 commit comments