Browse Source

fixed port displaying all ports

pull/1639/head
Daniel Gibbs 8 years ago
parent
commit
43c764c59d
  1. 2
      lgsm/functions/info_config.sh

2
lgsm/functions/info_config.sh

@ -641,7 +641,7 @@ fn_info_config_unreal3(){
else
web=UT
fi
port=$(grep "Port" "${servercfgdir}/LinuxServer-KFEngine.ini" | grep -v "#" | tr -cd '[:digit:]')
port=$(grep "Port" "${servercfgdir}/LinuxServer-KFEngine.ini" | sed -e 's/^[ \t]*//g' | grep "^Port" | grep -v "#" | tr -cd '[:digit:]')
webadminenabled=$(grep "bEnabled" "${servercfgdir}/${web}Web.ini" | sed -e 's/^[ \t]*//g' -e '/^#/d' -e 's/bEnabled//g' | tr -d '=\";,:' | sed -e 's/^[ \t]*//' -e 's/[ \t]*$//')
webadminport=$(grep "ListenPort" "${servercfgdir}/${web}Web.ini" | grep -v "#" | tr -cd '[:digit:]')
webadminuser="Admin"

Loading…
Cancel
Save