Update nodemgmt-scripts.sh

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

View File

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