Skip to content

Commit 3d7ee63

Browse files
committed
Updates TS3 tests to match current layout
1 parent 377ecf3 commit 3d7ee63

File tree

1 file changed

+52
-26
lines changed

1 file changed

+52
-26
lines changed

tests/tests_ts3server.sh

Lines changed: 52 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,54 +1,75 @@
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
811
if [ -f ".dev-debug" ]; then
912
exec 5>dev-debug.log
1013
BASH_XTRACEFD="5"
1114
set -x
1215
fi
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
2031
emailalert="off"
2132
22-
#emailfrom="[email protected]"
33+
emailfrom=""
2334

24-
# Pushbullet
25-
# https://www.pushbullet.com/#settings
35+
# Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
2636
pushbulletalert="off"
2737
pushbullettoken="accesstoken"
38+
channeltag=""
2839

29-
# Start Variables
40+
## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
3041
updateonstart="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.
4257
githubuser="GameServerManagers"
4358
githubrepo="LinuxGSM"
4459
githubbranch="$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
4967
servicename="ts3-server"
5068

51-
# Directories
69+
#### Directories ####
70+
# Edit with care
71+
72+
## Work Directories
5273
rootdir="$(dirname $(readlink -f "${BASH_SOURCE[0]}"))"
5374
selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
5475
lockselfname=".${servicename}.lock"
@@ -57,27 +78,32 @@ functionsdir="${lgsmdir}/functions"
5778
libdir="${lgsmdir}/lib"
5879
tmpdir="${lgsmdir}/tmp"
5980
filesdir="${rootdir}/serverfiles"
81+
82+
## Server Specific Directories
6083
systemdir="${filesdir}"
6184
executabledir="${filesdir}"
6285
executable="./ts3server_startscript.sh"
6386
servercfg="${servicename}.ini"
6487
servercfgdefault="ts3server.ini"
6588
servercfgdir="${filesdir}"
6689
servercfgfullpath="${servercfgdir}/${servercfg}"
90+
91+
## Backup Directory
6792
backupdir="${rootdir}/backups"
6893

69-
# Logging
70-
logdays="7"
94+
## Logging Directories
7195
gamelogdir="${filesdir}/logs"
7296
scriptlogdir="${rootdir}/log/script"
73-
7497
scriptlog="${scriptlogdir}/${servicename}-script.log"
7598
emaillog="${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
83109
fn_fetch_core_dl(){

0 commit comments

Comments
 (0)