From f826bc6306ce9a1ea1677d7078ede03829d9df92 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sat, 15 Oct 2022 23:07:34 -0500 Subject: [PATCH] Update nodemgmt-scripts.sh --- nodemgmt-scripts.sh | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) 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 $(