Update nodemgmt-scripts.sh
This commit is contained in:
@@ -952,13 +952,13 @@ COPYCERTS_NPM(){
|
||||
if [ -z $action ] || [ "${action}" = "gui" ]; then
|
||||
DIVIDER true
|
||||
fi
|
||||
echo
|
||||
#echo
|
||||
|
||||
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
|
||||
#echo "no folder found... creating"
|
||||
echo "${SUBJECT} ... creating"
|
||||
/bin/ln -s ${certdir} ${ssldir}/${SUBJECT}
|
||||
fi
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user