|
@ -1046,13 +1046,16 @@ fn_info_config_unreal3(){ |
|
|
servername="${unavailable}" |
|
|
servername="${unavailable}" |
|
|
serverpassword="${unavailable}" |
|
|
serverpassword="${unavailable}" |
|
|
adminpassword="${unavailable}" |
|
|
adminpassword="${unavailable}" |
|
|
|
|
|
maxplayers="${unavailable}" |
|
|
webadminenabled="${unavailable}" |
|
|
webadminenabled="${unavailable}" |
|
|
webadminport="${zero}" |
|
|
webadminport="${zero}" |
|
|
webadminuser="${unavailable}" |
|
|
webadminuser="${unavailable}" |
|
|
webadminpass="${unavailable}" |
|
|
webadminpass="${unavailable}" |
|
|
else |
|
|
else |
|
|
servername=$(grep "ServerName" "${servercfgfullpath}" | sed -e 's/^[ \t]*//g' -e '/^#/d' -e 's/ServerName//g' | tr -d '=\";,:' | sed -e 's/^[ \t]*//' -e 's/[ \t]*$//') |
|
|
servername=$(grep "ServerName" "${servercfgfullpath}" | sed -e 's/^[ \t]*//g' -e '/^#/d' -e 's/ServerName//g' | tr -d '=\";,:' | sed -e 's/^[ \t]*//' -e 's/[ \t]*$//') |
|
|
|
|
|
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]*$//') |
|
|
adminpassword=$(grep "AdminPassword" "${servercfgfullpath}" | sed -e 's/^[ \t]*//g' -e '/^#/d' -e 's/AdminPassword//g' | tr -d '=\";,:' | sed -e 's/^[ \t]*//' -e 's/[ \t]*$//') |
|
|
|
|
|
maxplayers=$(grep "MaxPlayers" "${servercfgfullpath}" | grep -v "#" | tr -cd '[:digit:]') |
|
|
webadminenabled=$(grep "bEnabled" "${servercfgdir}/UTWeb.ini" | sed -e 's/^[ \t]*//g' -e '/^#/d' -e 's/bEnabled//g' | tr -d '=\";,:' | sed -e 's/^[ \t]*//' -e 's/[ \t]*$//') |
|
|
webadminenabled=$(grep "bEnabled" "${servercfgdir}/UTWeb.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}/UTWeb.ini" | grep -v "#" | tr -cd '[:digit:]') |
|
|
webadminport=$(grep "ListenPort" "${servercfgdir}/UTWeb.ini" | grep -v "#" | tr -cd '[:digit:]') |
|
|
webadminuser="Admin" |
|
|
webadminuser="Admin" |
|
@ -1062,7 +1065,7 @@ fn_info_config_unreal3(){ |
|
|
servername=${servername:-"NOT SET"} |
|
|
servername=${servername:-"NOT SET"} |
|
|
serverpassword=${serverpassword:-"NOT SET"} |
|
|
serverpassword=${serverpassword:-"NOT SET"} |
|
|
adminpassword=${adminpassword:-"NOT SET"} |
|
|
adminpassword=${adminpassword:-"NOT SET"} |
|
|
port=${port:-"0"} |
|
|
maxplayers=${maxplayers:-"NOT SET"} |
|
|
webadminenabled=${webadminenabled:-"NOT SET"} |
|
|
webadminenabled=${webadminenabled:-"NOT SET"} |
|
|
webadminport=${webadminport:-"0"} |
|
|
webadminport=${webadminport:-"0"} |
|
|
webadminuser=${webadminuser:-"NOT SET"} |
|
|
webadminuser=${webadminuser:-"NOT SET"} |
|
|