[project @ peter@palfrader.org-20080521083955-ex37zwnp00iv56e9]
[mirror/dsa-nagios.git] / dsa-nagios-nrpe-config / debian / cron.daily
index 9431dac..a0bbbec 100644 (file)
@@ -13,6 +13,7 @@
        while [ "$count" -lt "$UPDATE_RUNS" ]; do
                apt-get update -qq
                if [ "$?" = "0" ]; then break; fi
+               sleep $(( $RANDOM % 600 ))
                count="$(( $count + 1 ))"
        done
        if [ "$count" -ge "$UPDATE_RUNS" ]; then
@@ -24,7 +25,7 @@
        set -e
        tmp=`tempfile`
        trap "rm -f '$tmp'" exit
-       /usr/share/dsa/apt-status-check > "$tmp"
+       /usr/share/dsa/apt-status-check --noupdate > "$tmp"
        result="$?"
        case "$result" in
          0)