Update nodemgmt-scripts.sh
This commit is contained in:
1 parent
bfca3c35e3
commit
8795f22f37
1 file changed
+1
-1
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user