Clean on the first of each month instead of every friday

This commit is contained in:
2022-11-18 13:23:13 +02:00
parent f08ba95750
commit ed6614c4b1

View File

@@ -178,8 +178,8 @@ elif [[ -n $REPOSITORY ]] && [[ -n $CLEAN ]]; then
(*)
help;;
esac
#If cleaning was forced and no repository specified, clean all repositories
elif [[ -n $CLEAN ]] || [[ $(date +%a) == "Friday" ]]; then
#If cleaning was forced, or if it's the first of this month - clean.
elif [[ -n $CLEAN ]] || [[ $(date +%d) == "1" ]]; then
clean Gerbil-TK
clean Pukeko-XYZ-Containers
clean Pukeko-XYZ-Cloud