Update nodemgmt-scripts.sh

This commit is contained in:
voltron committed 2022-12-27 16:54:26 -06:00
1 parent b7573be248
commit 73449977a8
1 file changed
+3
+3
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