Update nodemgmt-scripts.sh

This commit is contained in:
2022-12-27 16:54:26 -06:00
parent b7573be248
commit 73449977a8

View File

@@ -958,7 +958,10 @@ COPYCERTS_NPM(){
SUBJECT=$(${NCMD} openssl x509 -in ${certdir}cert.pem -noout -subject|grep -oP '(?<=CN = )[^,]+'|sort -uV)
echo $SUBJECT
if [ ! -L ${ssldir}/${SUBJECT} ]; then
echo "no folder found... creating"
/bin/ln -s ${certdir} ${ssldir}/${SUBJECT}
else
echo "folder found"
fi
done
echo