From d3616d9c83102296e282702a6e44571972e3e426 Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Tue, 9 Dec 2014 23:46:14 +0000 Subject: [PATCH] Moved port detection out of main script --- Arma3/arma3server | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/Arma3/arma3server b/Arma3/arma3server index 3d105bc20..3362009f8 100644 --- a/Arma3/arma3server +++ b/Arma3/arma3server @@ -4,7 +4,7 @@ # Author: Daniel Gibbs # Contributor: Scarsz # Website: http://danielgibbs.co.uk -# Version: 011214 +# Version: 081214 #### Variables #### @@ -47,11 +47,8 @@ servercfg="${servicename}.cfg" servercfgfullpath="${servercfgdir}/${servercfg}" backupdir="backups" -# Server Details -servername=$(grep -s hostname "${servercfgfullpath}"|sed -e 's/\//g'| tr -d '=\"; ') -serverport=$(sed -n -e '10 p' ${servercfgfullpath} 2>/dev/null| sed 's/[\/\; ]//g' | tr -cd [:digit:]) -queryport=$(sed -n -e '14 p' ${servercfgfullpath} 2>/dev/null| sed 's/[\/\; ]//g' | tr -cd [:digit:]) -masterport=$(sed -n -e '12 p' ${servercfgfullpath} 2>/dev/null| sed 's/[\/\; ]//g' | tr -cd [:digit:]) +# Server Details Cont. +servername=$(grep -s hostname "${servercfgfullpath}"| grep -v //|sed -e 's/\//g'| tr -d '=\"; ') # Logging logdays="7"