Update nodemgmt-scripts.sh

This commit is contained in:
2022-12-27 16:57:58 -06:00
parent cfef7762f1
commit 7c8cc1a0ec

View File

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