Browse Source

moved port and server name to info_config.sh

pull/947/head
Daniel Gibbs 9 years ago
parent
commit
1f11921445
  1. 8
      Mumble/mumbleserver
  2. 3
      lgsm/functions/info_config.sh

8
Mumble/mumbleserver

@ -62,14 +62,6 @@ servercfgdir="${filesdir}"
servercfgfullpath="${servercfgdir}/${servercfg}"
backupdir="${rootdir}/backups"
if [ -f "${servercfgfullpath}" ]; then
port=$(cat "${servercfgfullpath}" | grep 'port=' | awk -F'=' '{ print $2 }')
servername="Mumble Port ${port}"
else
port="UNKNOWN"
servername="Mumble"
fi
# Logging
logdays="7"
gamelogdir="${rootdir}/log"

3
lgsm/functions/info_config.sh

@ -225,6 +225,7 @@ fn_info_config_mumble(){
if [ ! -f "${servercfgfullpath}" ]; then
port="64738"
queryport="${port}"
servername="Mumble"
else
# check if the ip exists in the config file. Failing this will fall back to the default.
ipconfigcheck=$(cat "${servercfgfullpath}" | grep "host=" | awk -F'=' '{ print $2}')
@ -237,6 +238,8 @@ fn_info_config_mumble(){
# Not Set
port=${port:-"64738"}
queryport=${queryport:-"64738"}
servername="Mumble Port ${port}"
fi
}

Loading…
Cancel
Save