diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index a41a2762..e1e40e58 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -1005,6 +1005,11 @@ LISTCERTS_NPM(){ COPYCERTS_NPM(){ ssldir='/opt/nginx-proxy/ssl' + olddirs=$(find $ssldir -type l ! -exec test -e {} \; -print) + for od in ${olddirs[@]}; do + echo $od + done + if [ ! -z ${LOCAL_SERVICES+x} ]; then NCMD="ssh root@${LB_HOSTS[0]}" ${NCMD} rm -f /tmp/ssllist