Browse Source

Corrected bug ARMA 3 admin and server password

Password where set teh wrong way around
pull/475/head
Daniel Gibbs 10 years ago
parent
commit
2a826ea131
  1. 7
      functions/fn_details_config

7
functions/fn_details_config

@ -2,7 +2,7 @@
# LGSM fn_details_config function # LGSM fn_details_config function
# Author: Daniel Gibbs # Author: Daniel Gibbs
# Website: http://gameservermanagers.com # Website: http://gameservermanagers.com
# Version: 270715 # Version: 280715
# Description: Gets specific details from config files. # Description: Gets specific details from config files.
@ -166,6 +166,7 @@ elif [ "${engine}" == "projectzomboid" ]; then
fn_servercfgfullpath fn_servercfgfullpath
# ARMA 3
elif [ "${engine}" == "realvirtuality" ]; then elif [ "${engine}" == "realvirtuality" ]; then
# server name # server name
@ -180,7 +181,7 @@ elif [ "${engine}" == "realvirtuality" ]; then
# admin password # admin password
if [ -f "${servercfgfullpath}" ]; then 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 if [ ! -n "${adminpassword}" ]; then
adminpassword="NOT SET" adminpassword="NOT SET"
fi fi
@ -190,7 +191,7 @@ elif [ "${engine}" == "realvirtuality" ]; then
# server password # server password
if [ -f "${servercfgfullpath}" ]; then 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 if [ ! -n "${adminpassword}" ]; then
serverpassword="NOT SET" serverpassword="NOT SET"
fi fi

Loading…
Cancel
Save