diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index 71f5d2b2..a41a2762 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -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(){