projects
/
mirror
/
dsa-nagios.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
e2c5421e17f439bf645b2e06dbb4d5a5e3a1d27a
[mirror/dsa-nagios.git]
/
dsa-check-dchroots-current
1
#!/bin/bash
2
3
oldtars=$(find /srv/chroot -mindepth 1 -maxdepth 1 -name '*.tar.gz' -mtime +14 -printf "%f ")
4
5
if [ -z "$oldtars" ]; then
6
echo "OK: All tarballs in /srv/chroot are recent"
7
exit 0
8
else
9
echo "Warning: Some tarballs are old: $oldtars"
10
exit 1
11
fi