From 2a826ea1310ec3169523c9d28e2882bf4050758e Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Tue, 28 Jul 2015 21:14:30 +0100 Subject: [PATCH] Corrected bug ARMA 3 admin and server password Password where set teh wrong way around --- functions/fn_details_config | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/functions/fn_details_config b/functions/fn_details_config index 19b211c30..b51b8f174 100644 --- a/functions/fn_details_config +++ b/functions/fn_details_config @@ -2,7 +2,7 @@ # LGSM fn_details_config function # Author: Daniel Gibbs # Website: http://gameservermanagers.com -# Version: 270715 +# Version: 280715 # Description: Gets specific details from config files. @@ -166,6 +166,7 @@ elif [ "${engine}" == "projectzomboid" ]; then fn_servercfgfullpath +# ARMA 3 elif [ "${engine}" == "realvirtuality" ]; then # server name @@ -180,7 +181,7 @@ elif [ "${engine}" == "realvirtuality" ]; then # admin password if [ -f "${servercfgfullpath}" ]; then - adminpassword=$(grep "password =" "${servercfgfullpath}" | grep -v "//" | sed -e 's/\password//g' | tr -d '=\"; ') + adminpassword=$(grep "passwordAdmin" "${servercfgfullpath}" | grep -v "//" | sed -e 's/\passwordAdmin//g' | tr -d '=\"; ') if [ ! -n "${adminpassword}" ]; then adminpassword="NOT SET" fi @@ -190,7 +191,7 @@ elif [ "${engine}" == "realvirtuality" ]; then # server password if [ -f "${servercfgfullpath}" ]; then - serverpassword=$(grep "passwordAdmin" "${servercfgfullpath}" | grep -v "//" | sed -e 's/\passwordAdmin//g' | tr -d '=\"; ') + serverpassword=$(grep "password =" "${servercfgfullpath}" | grep -v "//" | sed -e 's/\password//g' | tr -d '=\"; ') if [ ! -n "${adminpassword}" ]; then serverpassword="NOT SET" fi