Update nodemgmt-scripts.sh

This commit is contained in:
2022-12-27 16:55:25 -06:00
parent bfca3c35e3
commit 8795f22f37

View File

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