X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=dsa-nagios-checks%2Fsbin%2Fdsa-update-apt-status;h=a89dbcf65468c70b749ef5e7e9363025fd41e742;hb=8f8c62c6a59465a751a3e8d11dccdf9e6f8d050b;hp=2c6347f200bff8e2c3ffc4cf9f2f3a4e89e47d34;hpb=e005c961d40307f6253670c02890c427ca5fc58f;p=mirror%2Fdsa-nagios.git diff --git a/dsa-nagios-checks/sbin/dsa-update-apt-status b/dsa-nagios-checks/sbin/dsa-update-apt-status index 2c6347f..a89dbcf 100755 --- a/dsa-nagios-checks/sbin/dsa-update-apt-status +++ b/dsa-nagios-checks/sbin/dsa-update-apt-status @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash UPDATE_RUNS=3 STATUS=/var/cache/dsa/nagios/apt @@ -31,7 +31,7 @@ run_required() { # do stuff only when required, or when asked to if [ "${1:-""}" != "-f" ] ; then - run_required || exit + run_required || exit 0 fi # sleep if called non-interactively