Update nodemgmt-scripts.sh

This commit is contained in:
2023-08-24 20:42:05 -05:00
parent c50fb58d1e
commit 20d606ac94

View File

@@ -588,8 +588,7 @@ BACKUP_OFFSITEPFSENSE(){
[ "${i}" == "${a}" ] && keep=1
done;
if [ $keep == 0 ]; then
if [ "$(date +%u)" == "1" ] && mv ${i} ${i}-W
rm -rf ${i}
[ "$(date +%u)" == "1" ] && mv ${i} ${i}-W || rm -rf ${i}
fi
done