Hatarashi Hako now provides Prometheus metrics; old updates
This commit is contained in:
19
Kumonoboru
19
Kumonoboru
@@ -141,8 +141,17 @@ clean(){
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
#If cleaning was forced, or if it's the first of this month - clean.
|
||||
if [[ -n $CLEAN ]] || [[ $(date +%d) == "1" ]]; then
|
||||
check Gerbil-TK
|
||||
clean Gerbil-TK
|
||||
check Pukeko-XYZ-Containers
|
||||
clean Pukeko-XYZ-Containers
|
||||
check Pukeko-XYZ-Cloud
|
||||
clean Pukeko-XYZ-Cloud
|
||||
#If a specific repository was requested, back it up; otherwise, back them all up.
|
||||
if [[ -n $REPOSITORY ]] && [[ -z $CLEAN ]]; then
|
||||
elif [[ -n $REPOSITORY ]] && [[ -z $CLEAN ]]; then
|
||||
case "$REPOSITORY" in
|
||||
(Gerbil-TK)
|
||||
backup Gerbil-TK /var/Red-Vol/Media/Pictures/
|
||||
@@ -179,14 +188,6 @@ elif [[ -n $REPOSITORY ]] && [[ -n $CLEAN ]]; then
|
||||
(*)
|
||||
help;;
|
||||
esac
|
||||
#If cleaning was forced, or if it's the first of this month - clean.
|
||||
elif [[ -n $CLEAN ]] || [[ $(date +%d) == "1" ]]; then
|
||||
check Gerbil-TK
|
||||
clean Gerbil-TK
|
||||
check Pukeko-XYZ-Containers
|
||||
clean Pukeko-XYZ-Containers
|
||||
check Pukeko-XYZ-Cloud
|
||||
clean Pukeko-XYZ-Cloud
|
||||
fi
|
||||
#Wrap up this run's log and report nicely
|
||||
echo "All done; have a nice day!"
|
||||
|
||||
Reference in New Issue
Block a user