Lines 100-107
audit_base() {
Link Here
|
100 |
if [ $rc -ne 0 -o \ |
100 |
if [ $rc -ne 0 -o \ |
101 |
$(( 86400 \* "${security_status_baseaudit_expiry}" )) \ |
101 |
$(( 86400 \* "${security_status_baseaudit_expiry}" )) \ |
102 |
-le $(( ${now} - ${then} + 600 )) ]; then |
102 |
-le $(( ${now} - ${then} + 600 )) ]; then |
103 |
## Random delay so the mirrors do not get slammed when run by periodic(8) |
103 |
## When non-interactive, sleep to reduce congestion on mirrors |
104 |
if [ ! -t 0 ]; then |
104 |
if [ -n "$anticongestion_sleeptime" ]; then |
|
|
105 |
# In FreeBSD 12.0 the anticongestion function should be |
106 |
# used instead of a hard-coded sleep |
107 |
anticongestion |
108 |
else |
105 |
sleep `jot -r 1 0 600` |
109 |
sleep `jot -r 1 0 600` |
106 |
fi |
110 |
fi |
107 |
f="-F" |
111 |
f="-F" |