Browse Source

ordering & matching changes

pull/1138/head
UltimateByte 9 years ago
committed by GitHub
parent
commit
e370cdd4b4
  1. 6
      lgsm/functions/info_config.sh

6
lgsm/functions/info_config.sh

@ -321,14 +321,12 @@ fn_info_config_mumble(){
servername="Mumble"
else
port=$(grep "port" "${servercfgfullpath}" | sed -e 's/^[ \t]*//g' -e '/^;/d' -e 's/port//g' | tr -d '=\";,:' | sed -e 's/^[ \t]*//' -e 's/[ \t]*$//')
queryport="${port}"
ip=$(grep "host=" "${servercfgfullpath}" | sed -e 's/^[ \t]*//g' -e '/^;/d' -e 's/host=//g' | tr -d '=\";,:' | sed -e 's/^[ \t]*//' -e 's/[ \t]*$//')
# Not Set
port=${port:-"64738"}
queryport=${queryport:-"64738"}
servername="Mumble Port ${port}"
ip=$(grep "host=" "${servercfgfullpath}" | sed -e 's/^[ \t]*//g' -e '/^;/d' -e 's/host=//g' | tr -d '=\";,:' | sed -e 's/^[ \t]*//' -e 's/[ \t]*$//')
# Misc variables
ipsetinconfig=1
ipinconfigvar="voice_ip"
fi

Loading…
Cancel
Save