ProgrammersOfVilnius / pov-check-health

Debian package that runs basic system health monitoring checks hourly from cron
https://launchpad.net/~pov/+archive/ppa
2 stars 0 forks source link

Wishlist: check_postmap_up_to_date #20

Closed mgedmin closed 5 years ago

mgedmin commented 7 years ago

Implementation:

# check if a generated file is newer than the source file
check_postmap_up_to_date() {
    info_check check_postmap_up_to_date "$@"
    f="$1"
    [ "$f.db" -ot "$f" ] && {
        warn "$f.db out of date; run postmap $f"
        return 1
    }
    return 0
}