Browse Source

minor code tidy

pull/254/merge
Daniel Gibbs 10 years ago
parent
commit
58ee24085e
  1. 8
      functions/fn_details
  2. 2
      functions/fn_serverquery

8
functions/fn_details

@ -173,10 +173,10 @@ echo ""
fn_arma3details(){
fn_autoip
servername=$(grep -s hostname "${servercfgfullpath}"| grep -v //|sed -e 's/\<hostname\>//g'| tr -d '=\"; ')
serverport=$(grep -s serverport= "${servercfgfullpath}"| grep -v //|tr -cd [:digit:])
queryport=$(grep -s steamqueryport= "${servercfgfullpath}"| grep -v //|tr -cd [:digit:])
masterport=$(grep -s steamport= "${servercfgfullpath}"| grep -v //|tr -cd [:digit:])
servername=$(grep -s hostname "${servercfgfullpath}"|grep -v //|sed -e 's/\<hostname\>//g'|tr -d '=\"; ')
serverport=$(grep -s serverport= "${servercfgfullpath}"|grep -v //|tr -cd [:digit:])
queryport=$(grep -s steamqueryport= "${servercfgfullpath}"|grep -v //|tr -cd [:digit:])
masterport=$(grep -s steamport= "${servercfgfullpath}"|grep -v //|tr -cd [:digit:])
pid=$(tmux list-sessions 2>&1|awk '{print $1}'|grep -E "^${servicename}:"|wc -l)
echo ""
echo "${gamename} Server Details"

2
functions/fn_serverquery

@ -13,7 +13,7 @@ if [ -f gsquery.py ]; then
elif [ "${engine}" == "spark" ]; then
port=$((${port} + 1))
elif [ "${engine}" == "realvirtuality" ]; then
queryport=$(grep -s steamqueryport= "${servercfgfullpath}"| grep -v //|tr -cd [:digit:])
queryport=$(grep -s steamqueryport= "${servercfgfullpath}"|grep -v //|tr -cd [:digit:])
port=${queryport}
fi
fn_printinfo "Monitoring ${servicename}: Detected gsquery.py"

Loading…
Cancel
Save