|
|
@ -573,6 +573,7 @@ fn_info_config_unreal(){ |
|
|
|
serverpassword="${unavailable}" |
|
|
|
adminpassword="${unavailable}" |
|
|
|
port="${zero}" |
|
|
|
queryport="${zero}" |
|
|
|
gsqueryport="${zero}" |
|
|
|
webadminenabled="${unavailable}" |
|
|
|
webadminport="${zero}" |
|
|
@ -583,6 +584,7 @@ fn_info_config_unreal(){ |
|
|
|
serverpassword=$(grep "GamePassword" "${servercfgfullpath}" | sed -e 's/^[ \t]*//g' -e '/^#/d' -e 's/GamePassword//g' | tr -d '=\";,:' | sed -e 's/^[ \t]*//' -e 's/[ \t]*$//') |
|
|
|
adminpassword=$(grep "AdminPassword" "${servercfgfullpath}" | sed -e 's/^[ \t]*//g' -e '/^#/d' -e 's/AdminPassword//g' | tr -d '=\";,:' | sed -e 's/^[ \t]*//' -e 's/[ \t]*$//') |
|
|
|
port=$(grep "Port" "${servercfgfullpath}" | sed -e 's/^[ \t]*//g' | grep "^Port" | grep -v "#" | tr -cd '[:digit:]') |
|
|
|
queryport=$((port + 1)) |
|
|
|
gsqueryport=$(grep "OldQueryPortNumber" "${servercfgfullpath}" | grep -v "#" | tr -cd '[:digit:]') |
|
|
|
webadminenabled=$(grep "bEnabled" "${servercfgfullpath}" | sed -e 's/^[ \t]*//g' -e '/^#/d' -e 's/bEnabled//g' | tr -d '=\";,:' | sed -e 's/^[ \t]*//' -e 's/[ \t]*$//') |
|
|
|
webadminport=$(grep "ListenPort" "${servercfgfullpath}" | grep -v "#" | tr -cd '[:digit:]') |
|
|
|