Update certs.inc

This commit is contained in:
2023-11-13 09:32:13 -06:00
parent 468393a2c4
commit 2ac64f7629

View File

@@ -184,17 +184,17 @@ LISTCERTS(){
shift
done
declare -i cw; declare -i spc1; declare -i c
if [ -f ${NM_FOLDER}/conf/ssl-domain-checks.conf ]; then
declare -A CHECKCERT_DOMAINS
IFS=$'\n'
for LINE in `egrep -v '(^#|^$)' ${NM_FOLDER}/conf/ssl-domain-checks.conf`; do
HOST=${LINE%% *}
PORT=${LINE#* }
IFS=" "
CHECKCERT_DOMAINS[${HOST}]=${PORT}
done
unset IFS
fi
# if [ -f ${NM_FOLDER}/conf/ssl-domain-checks.conf ]; then
# declare -A CHECKCERT_DOMAINS
# IFS=$'\n'
# for LINE in `egrep -v '(^#|^$)' ${NM_FOLDER}/conf/ssl-domain-checks.conf`; do
# HOST=${LINE%% *}
# PORT=${LINE#* }
# IFS=" "
# CHECKCERT_DOMAINS[${HOST}]=${PORT}
# done
# unset IFS
# fi
# if [ ! -z ${LOCAL_SERVICES+x} ]; then
# NCMD="ssh root@${NM_HOSTS['LB'][0]}"