Update nodemgmt-scripts.sh

This commit is contained in:
2022-12-27 16:57:29 -06:00
parent 5c590c01ca
commit d1bc070255

View File

@@ -957,11 +957,9 @@ 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}
if [ ! -f ${ssldir}/${SUBJECT} ]; then
if [ ! -L ${ssldir}/${SUBJECT} ]; then
echo "no folder found... creating"
#/bin/ln -s ${certdir} ${ssldir}/${SUBJECT}
else
echo "folder found"
/bin/ln -s ${certdir} ${ssldir}/${SUBJECT}
fi
done
echo