Lines 38-43
Link Here
|
38 |
source_periodic_confs |
38 |
source_periodic_confs |
39 |
fi |
39 |
fi |
40 |
|
40 |
|
|
|
41 |
SLEEP=/bin/sleep |
42 |
JOT=/usr/bin/jot |
43 |
|
44 |
random() { |
45 |
${JOT} -r 1 0 900 |
46 |
} |
47 |
|
41 |
rc=0 |
48 |
rc=0 |
42 |
|
49 |
|
43 |
case "$monthly_boxbackup_compare_enable" in |
50 |
case "$monthly_boxbackup_compare_enable" in |
Lines 44-49
Link Here
|
44 |
[Yy][Ee][Ss]) |
51 |
[Yy][Ee][Ss]) |
45 |
echo |
52 |
echo |
46 |
echo "Running Box Backup store compare:" |
53 |
echo "Running Box Backup store compare:" |
|
|
54 |
# When non-interactive, sleep to reduce congestion on rkhunter |
55 |
# site |
56 |
if [ "$1" != -nodelay ]; then |
57 |
# In FreeBSD 12.0 the anticongestion function should |
58 |
# be used instead of a hard-coded sleep |
59 |
if [ -n "$anticongestion_sleeptime" ]; then |
60 |
anticongestion |
61 |
else |
62 |
${SLEEP} $(random) |
63 |
fi |
64 |
fi |
47 |
%%PREFIX%%/sbin/bbackupquery -q "compare -c $monthly_boxbackup_compare_args" quit |
65 |
%%PREFIX%%/sbin/bbackupquery -q "compare -c $monthly_boxbackup_compare_args" quit |
48 |
|
66 |
|
49 |
# Return codes: |
67 |
# Return codes: |