|
@ -9,32 +9,47 @@ if [ -f ".dev-debug" ]; then |
|
|
set -x |
|
|
set -x |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
|
version="210516" |
|
|
version="170103" |
|
|
|
|
|
|
|
|
#### Variables #### |
|
|
########################## |
|
|
|
|
|
######## Settings ######## |
|
|
|
|
|
########################## |
|
|
|
|
|
|
|
|
# Notification Alerts |
|
|
#### Server Settings #### |
|
|
# (on|off) |
|
|
|
|
|
|
|
|
## Server Start Settings | https://github.com/GameServerManagers/LinuxGSM/wiki/Start-Parameters |
|
|
|
|
|
# None Available |
|
|
|
|
|
|
|
|
|
|
|
## Server Start Command | https://github.com/GameServerManagers/LinuxGSM/wiki/Start-Parameters#additional-parameters |
|
|
|
|
|
# Edit with care |
|
|
|
|
|
fn_parms(){ |
|
|
|
|
|
parms=" " |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
#### LinuxGSM Settings #### |
|
|
|
|
|
|
|
|
# Email |
|
|
## Notification Alerts |
|
|
|
|
|
# (on|off) |
|
|
|
|
|
# Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email |
|
|
emailalert="off" |
|
|
emailalert="off" |
|
|
email="email@example.com" |
|
|
email="email@example.com" |
|
|
#emailfrom="email@example.com" |
|
|
emailfrom="" |
|
|
|
|
|
|
|
|
# Pushbullet |
|
|
# Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet |
|
|
# https://www.pushbullet.com/#settings |
|
|
|
|
|
pushbulletalert="off" |
|
|
pushbulletalert="off" |
|
|
pushbullettoken="accesstoken" |
|
|
pushbullettoken="accesstoken" |
|
|
|
|
|
channeltag="" |
|
|
|
|
|
|
|
|
# Start Variables |
|
|
## Backup | https://github.com/GameServerManagers/LinuxGSM/wiki/Backup |
|
|
ip="0.0.0.0" |
|
|
maxbackups="4" |
|
|
port="22003" |
|
|
maxbackupdays="30" |
|
|
|
|
|
stoponbackup="on" |
|
|
|
|
|
|
|
|
fn_parms(){ |
|
|
## Logging | https://github.com/GameServerManagers/LinuxGSM/wiki/Logging |
|
|
parms=" " |
|
|
consolelogging="on" |
|
|
} |
|
|
logdays="7" |
|
|
|
|
|
|
|
|
#### Advanced Variables #### |
|
|
#### LinuxGSM Advanced Settings #### |
|
|
|
|
|
|
|
|
# Github Branch Select |
|
|
# Github Branch Select |
|
|
# Allows for the use of different function files |
|
|
# Allows for the use of different function files |
|
@ -43,12 +58,18 @@ githubuser="dgibbs64" |
|
|
githubrepo="linuxgsm" |
|
|
githubrepo="linuxgsm" |
|
|
githubbranch="mta" |
|
|
githubbranch="mta" |
|
|
|
|
|
|
|
|
# Server Details |
|
|
## LinuxGSM Server Details |
|
|
servicename="mta-server" |
|
|
# Do not edit |
|
|
gamename="Multi Theft Auto" |
|
|
gamename="Multi Theft Auto" |
|
|
engine="RenderWare" |
|
|
engine="RenderWare" |
|
|
|
|
|
|
|
|
# Directories |
|
|
## Service Name | https://github.com/GameServerManagers/LinuxGSM/wiki/Multiple-Servers |
|
|
|
|
|
servicename="mta-server" |
|
|
|
|
|
|
|
|
|
|
|
#### Directories #### |
|
|
|
|
|
# Edit with care |
|
|
|
|
|
|
|
|
|
|
|
## Work Directories |
|
|
rootdir="$(dirname $(readlink -f "${BASH_SOURCE[0]}"))" |
|
|
rootdir="$(dirname $(readlink -f "${BASH_SOURCE[0]}"))" |
|
|
selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))" |
|
|
selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))" |
|
|
lockselfname=".${servicename}.lock" |
|
|
lockselfname=".${servicename}.lock" |
|
@ -58,7 +79,7 @@ libdir="${lgsmdir}/lib" |
|
|
tmpdir="${lgsmdir}/tmp" |
|
|
tmpdir="${lgsmdir}/tmp" |
|
|
filesdir="${rootdir}/serverfiles" |
|
|
filesdir="${rootdir}/serverfiles" |
|
|
|
|
|
|
|
|
# Server Specific |
|
|
## Server Specific Directories |
|
|
systemdir="${filesdir}" |
|
|
systemdir="${filesdir}" |
|
|
resourcesdir="${systemdir}/mods/deathmatch/resources" |
|
|
resourcesdir="${systemdir}/mods/deathmatch/resources" |
|
|
executabledir="${systemdir}" |
|
|
executabledir="${systemdir}" |
|
@ -67,20 +88,18 @@ servercfg="mtaserver.conf" |
|
|
servercfgdir="${systemdir}/mods/deathmatch" |
|
|
servercfgdir="${systemdir}/mods/deathmatch" |
|
|
servercfgfullpath="${servercfgdir}/${servercfg}" |
|
|
servercfgfullpath="${servercfgdir}/${servercfg}" |
|
|
|
|
|
|
|
|
# Backups |
|
|
## Backup Directory |
|
|
backupdir="${rootdir}/backups" |
|
|
backupdir="${rootdir}/backups" |
|
|
|
|
|
|
|
|
# Logging |
|
|
## Logging Directories |
|
|
logdays="7" |
|
|
|
|
|
gamelogdir="${filesdir}/mods/deathmatch/logs" |
|
|
gamelogdir="${filesdir}/mods/deathmatch/logs" |
|
|
scriptlogdir="${rootdir}/log/script" |
|
|
scriptlogdir="${rootdir}/log/script" |
|
|
consolelogdir="${rootdir}/log/console" |
|
|
consolelogdir="${rootdir}/log/console" |
|
|
consolelogging="on" |
|
|
|
|
|
|
|
|
|
|
|
scriptlog="${scriptlogdir}/${servicename}-script.log" |
|
|
scriptlog="${scriptlogdir}/${servicename}-script.log" |
|
|
consolelog="${consolelogdir}/${servicename}-console.log" |
|
|
consolelog="${consolelogdir}/${servicename}-console.log" |
|
|
emaillog="${scriptlogdir}/${servicename}-email.log" |
|
|
emaillog="${scriptlogdir}/${servicename}-email.log" |
|
|
|
|
|
|
|
|
|
|
|
## Logs Naming |
|
|
scriptlogdate="${scriptlogdir}/${servicename}-script-$(date '+%d-%m-%Y-%H-%M-%S').log" |
|
|
scriptlogdate="${scriptlogdir}/${servicename}-script-$(date '+%d-%m-%Y-%H-%M-%S').log" |
|
|
consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%d-%m-%Y-%H-%M-%S').log" |
|
|
consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%d-%m-%Y-%H-%M-%S').log" |
|
|
|
|
|
|
|
|