projects
/
mirror
/
dsa-nagios.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Spread out unowned files check in time
[mirror/dsa-nagios.git]
/
dsa-nagios-checks
/
sbin
/
dsa-update-apt-status
diff --git
a/dsa-nagios-checks/sbin/dsa-update-apt-status
b/dsa-nagios-checks/sbin/dsa-update-apt-status
index
3e3acef
..
a89dbcf
100755
(executable)
--- 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/
ba
sh
UPDATE_RUNS=3
STATUS=/var/cache/dsa/nagios/apt
UPDATE_RUNS=3
STATUS=/var/cache/dsa/nagios/apt
@@
-29,8
+29,10
@@
run_required() {
return $norun
}
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 0
+fi
# sleep if called non-interactively
if [ -z "$TERM" -o "$TERM" = "dumb" ]; then
# sleep if called non-interactively
if [ -z "$TERM" -o "$TERM" = "dumb" ]; then