Browse Source

added updateonstart

Fixed gamelogdir and shuffled stuff around to match other scripts.
pull/947/head
Daniel Gibbs 9 years ago
parent
commit
0bfc6e9366
  1. 33
      Mumble/mumbleserver

33
Mumble/mumbleserver

@ -10,7 +10,7 @@ if [ -f ".dev-debug" ]; then
set -x set -x
fi fi
version="270716" version="290716"
#### Variables #### #### Variables ####
@ -26,6 +26,23 @@ email="[email protected]"
pushbulletalert="off" pushbulletalert="off"
pushbullettoken="accesstoken" pushbullettoken="accesstoken"
# Start Variables
updateonstart="off"
fn_parms(){
parms="-fg -ini ${servercfgfullpath}"
}
#### Advanced Variables ####
# Github Branch Select
# Allows for the use of different function files
# from a different repo and/or branch.
githubuser="dgibbs64"
githubrepo="linuxgsm"
githubbranch="master"
# Server Details # Server Details
gamename="Mumble" gamename="Mumble"
servicename="mumble-server" servicename="mumble-server"
@ -44,6 +61,7 @@ servercfg="murmur.ini"
servercfgdir="${filesdir}" servercfgdir="${filesdir}"
servercfgfullpath="${servercfgdir}/${servercfg}" servercfgfullpath="${servercfgdir}/${servercfg}"
backupdir="${rootdir}/backups" backupdir="${rootdir}/backups"
if [ -f "${servercfgfullpath}" ]; then if [ -f "${servercfgfullpath}" ]; then
port=$(cat "${servercfgfullpath}" | grep 'port=' | awk -F'=' '{ print $2 }') port=$(cat "${servercfgfullpath}" | grep 'port=' | awk -F'=' '{ print $2 }')
servername="Mumble Port ${port}" servername="Mumble Port ${port}"
@ -54,7 +72,7 @@ fi
# Logging # Logging
logdays="7" logdays="7"
logdir="${rootdir}/log" gamelogdir="${rootdir}/log"
scriptlogdir="${rootdir}/log/script" scriptlogdir="${rootdir}/log/script"
consolelogdir="${rootdir}/log/console" consolelogdir="${rootdir}/log/console"
consolelogging="on" consolelogging="on"
@ -66,17 +84,6 @@ emaillog="${scriptlogdir}/${servicename}-email.log"
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"
fn_parms(){
parms="-fg -ini ${servercfgfullpath}"
}
# Github Branch Select
# Allows for the use of different function files
# from a different repo and/or branch.
githubuser="dgibbs64"
githubrepo="linuxgsm"
githubbranch="master"
##### Script ##### ##### Script #####
# Do not edit # Do not edit

Loading…
Cancel
Save