diff --git a/defaults.inc b/defaults.inc index 5cf98663..d605ccc6 100755 --- a/defaults.inc +++ b/defaults.inc @@ -1,6 +1,6 @@ #!/usr/bin/env bash -VERS='5.1.106-04242024' +VERS='5.1.108-05092024' NM_BETA=false noheader=' service status-check nightlyrephp7.3-fpm,new backup report check checkcerts gitea update-nodes copynpmcerts singleservercheck update-dyndns backup-offsitepfsense gui nightlyreview update log betacheck offsite-staticroute-fix ' diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index 65357f77..d1f65d58 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -863,7 +863,7 @@ DOWNLIST(){ until [ "${choice^^}" = "E" ]; do if [ "${1}" != "report" ] && [ ${sss} -ne 1 ]; then - DOWN_LIST=`find ${NM_TMPFOLDER}/ -iname "*.down"` + DOWN_LIST=`find ${NM_TMPFOLDER}/ -maxdepth 1 -iname "*.down"` IFS=$'\n'; read -rd '' -a DOWN_LIST <<<"${DOWN_LIST}"; unset IFS DOWNLIST=(${DOWN_LIST[@]}) elif [ ${sss} -eq 1 ]; then @@ -1258,7 +1258,7 @@ GUI(){ dl|downlist) if [ "${2}" = "report" ]; then - if [ "$(find ${NM_FOLDER} -name '*.down')" != "" ]; then + if [ "$(find ${NM_FOLDER} -maxdepth 1 -name '*.down')" != "" ]; then rm -f ${NM_LOGFOLDER}/status-downlist.lastrun DOWNLIST report >> ${NM_LOGFOLDER}/status-downlist.lastrun STATUSLOG="$(cat ${NM_LOGFOLDER}/status-downlist.lastrun)"