diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index 09a0266e..16ac3e6b 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -1004,8 +1004,8 @@ LISTCERTS_NPM(){ } COPYCERTS_NPM(){ ssldir='/opt/nginx-proxy/ssl' - ssls=$(find /opt/nginx-proxy/letsencrypt/live -type d) - ssldirs=$(find ${ssldir}/*/ -type l) + ssls=$(find /opt/nginx-proxy/letsencrypt/live/* -type d) + ssldirs=$(find ${ssldir} -type l) if [ "${1}" = "reset" ]; then echo "Resetting ... Deleting all SSL symlink folders"