Update nodemgmt-scripts.sh

This commit is contained in:
2022-10-15 23:17:42 -05:00
parent 6cb7f934e4
commit 0d177f7e46

View File

@@ -809,7 +809,7 @@ COPYCERTS_NPM(){
for certdir in $(</tmp/ssllist); do
SUBJECT=$(${NCMD} openssl x509 -in ${certdir}cert.pem -noout -subject|grep -oP '(?<=CN = )[^,]+'|sort -uV)
if [ -L ${ssldir}/${SUBJECT} ]; then
if [ ! -L ${ssldir}/${SUBJECT} ]; then
echo "${certdir} - ${ssldir}/${SUBJECT}"
/bin/ln -s ${certdir} ${ssldir}/${SUBJECT}
fi