Update certs.inc
This commit is contained in:
@@ -390,10 +390,10 @@ LISTCERTS(){
|
||||
if [ "${monitored^^}" == "YES" ]; then
|
||||
if [ "$(grep ${SUBJECT} ${NM_FOLDER}/conf/ssl-domain-checks.conf)" == "" ]; then
|
||||
[ ! -f ${NM_FOLDER}/conf/ssl-domain-checks.conf ] && touch ${NM_FOLDER}/conf/ssl-domain-checks.conf
|
||||
echo "${SUBJECT} 443" >> ${NM_FOLDER}/conf/ssl-domain-checks.conf >/dev/null 2&>1
|
||||
echo "${SUBJECT} 443" >> ${NM_FOLDER}/conf/ssl-domain-checks.conf
|
||||
checkcerts_sorted=$(sort <<< "$(cat ${NM_FOLDER}/conf/ssl-domain-checks.conf)")
|
||||
rm -f ${NM_FOLDER}/conf/ssl-domain-checks.conf >/dev/null 2&>1
|
||||
echo "${checkcerts_sorted}" > ${NM_FOLDER}/conf/ssl-domain-checks.conf >/dev/null 2&>1
|
||||
echo "${checkcerts_sorted}" > ${NM_FOLDER}/conf/ssl-domain-checks.conf
|
||||
if [ "${NM_NODEMANAGER}" != "$(/sbin/ip -o -4 addr list eth0 | awk '{print $4}' | cut -d/ -f1 | head -n1)" ]; then
|
||||
scp ${NM_FOLDER}/conf/ssl-domain-checks.conf root@${NM_NODEMANAGER}:${NM_FOLDER}/conf/ssl-domain-checks.conf
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user