diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index 57b236ac..325b3489 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -790,6 +790,33 @@ LISTCERTS_NPM(){ fi echo "" } +COPYCERTS_NPM(){ + declare -i cw; declare -i spc1; declare -i c + if [ ! -z ${LOCAL_SERVICES+x} ]; then + NCMD="ssh root@${MYSQL_HOSTS[0]}" + ${NCMD} rm -f /tmp/ssllist + ${NCMD} 'for certdir in /opt/nginx-proxy/letsencrypt/live/*/ ; do echo $certdir; done' > /tmp/ssllist + else + NCMD='' + rm -f /tmp/ssllist + for certdir in /opt/nginx-proxy/letsencrypt/live/*/ ; do echo $certdir; done > /tmp/ssllist + fi + if [ -z $action ] || [ "${action}" = "gui" ]; then + DIVIDER true + fi + echo + + for certdir in $(