X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;ds=sidebyside;f=dsa-nagios-checks%2Fsbin%2Fdsa-update-apt-status;h=2c6347f200bff8e2c3ffc4cf9f2f3a4e89e47d34;hb=5f61ad8ff7c0ada98030e265f4fdf1a497f03454;hp=3e3acefbb627d3839494b1ffe7c54d1a061185d7;hpb=42e99da9d896a33803e763c746e9a103183b6b34;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 3e3acef..2c6347f 100755 --- a/dsa-nagios-checks/sbin/dsa-update-apt-status +++ b/dsa-nagios-checks/sbin/dsa-update-apt-status @@ -29,8 +29,10 @@ run_required() { return $norun } -# do stuff only when required -run_required || exit +# do stuff only when required, or when asked to +if [ "${1:-""}" != "-f" ] ; then + run_required || exit +fi # sleep if called non-interactively if [ -z "$TERM" -o "$TERM" = "dumb" ]; then