summaryrefslogtreecommitdiffstats
path: root/debian/bcfg2.cron.hourly
blob: 73aae76060cbe52a7f46e4f7de68f11124e3f5f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh
BCFG2CRON=
if [ -x /usr/libexec/bcfg2-cron ]; then
    BCFG2CRON=/usr/libexec/bcfg2-cron
elif [ -x /usr/lib/bcfg2/bcfg2-cron ]; then
    BCFG2CRON=/usr/lib/bcfg2/bcfg2-cron
elif type bcfg2-cron 2>&1 >/dev/null; then
    BCFG2CRON=bcfg2-cron
else
    echo "No bcfg2-cron command found"
    exit 1
fi
$BCFG2CRON --hourly 2>&1 | logger -t bcfg2-cron -p daemon.info