diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index bd11a234..540d1a12 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -1300,10 +1300,17 @@ GUI(){ else if [ ! -f ${NM_TMPFOLDER}/.statusclean ] || [ $(expr $(date +%s) - $(stat -c %Y ${NM_TMPFOLDER}/.statusclean)) -ge 900 ]; then for oldstatus_check in ${NM_TMPFOLDER}/status-*; do + echo -n "HERE: ${oldstatus_check} === " if ! [[ "${oldstatus_check}" =~ *".stuck"* ]]; then + echo -n "not stuck - " if [ $(expr $(date +%s) - $(stat -c %Y ${oldstatus_check})) -ge 60 ]; then - rm -Rf ${oldstatus_check} + echo "removing" + # rm -Rf ${oldstatus_check} + else + echo "not removing" fi + else + echo "STUCK" fi done touch ${NM_TMPFOLDER}/.statusclean