Update nodemgmt-scripts.sh
This commit is contained in:
@@ -791,6 +791,7 @@ LISTCERTS_NPM(){
|
|||||||
echo ""
|
echo ""
|
||||||
}
|
}
|
||||||
COPYCERTS_NPM(){
|
COPYCERTS_NPM(){
|
||||||
|
|
||||||
declare -i cw; declare -i spc1; declare -i c
|
declare -i cw; declare -i spc1; declare -i c
|
||||||
if [ ! -z ${LOCAL_SERVICES+x} ]; then
|
if [ ! -z ${LOCAL_SERVICES+x} ]; then
|
||||||
NCMD="ssh root@${MYSQL_HOSTS[0]}"
|
NCMD="ssh root@${MYSQL_HOSTS[0]}"
|
||||||
@@ -808,7 +809,9 @@ COPYCERTS_NPM(){
|
|||||||
|
|
||||||
for certdir in $(</tmp/ssllist); do
|
for certdir in $(</tmp/ssllist); do
|
||||||
SUBJECT=$(${NCMD} openssl x509 -in ${certdir}cert.pem -noout -subject|grep -oP '(?<=CN = )[^,]+'|sort -uV)
|
SUBJECT=$(${NCMD} openssl x509 -in ${certdir}cert.pem -noout -subject|grep -oP '(?<=CN = )[^,]+'|sort -uV)
|
||||||
|
if [ -L ${my_link} ]; then
|
||||||
|
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
echo
|
echo
|
||||||
if [ -z $action ] || [ "${action}" = "gui" ]; then
|
if [ -z $action ] || [ "${action}" = "gui" ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user