Update nodemgmt-scripts.sh

This commit is contained in:
2023-01-29 08:58:13 -06:00
parent 2bb90fda04
commit efefca0a96

View File

@@ -1004,9 +1004,9 @@ LISTCERTS_NPM(){
}
COPYCERTS_NPM(){
ssldir='/opt/nginx-proxy/ssl'
declare -i cw; declare -i spc1; declare -i c
if [ ! -z ${LOCAL_SERVICES+x} ]; then
NCMD="ssh root@${MYSQL_HOSTS[0]}"
NCMD="ssh root@${LB_HOSTS[0]}"
${NCMD} rm -f /tmp/ssllist
${NCMD} 'for certdir in /opt/nginx-proxy/letsencrypt/live/*/ ; do echo $certdir; done' > /tmp/ssllist
else
@@ -1027,12 +1027,12 @@ COPYCERTS_NPM(){
/bin/ln -s ${certdir} ${ssldir}/${SUBJECT}
fi
done
echo
if [ -z $action ] || [ "${action}" = "gui" ]; then
echo
DIVIDER true
ENTER2CONTINUE
echo
fi
echo ""
}
CHECK-CERTS(){