1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2024-11-23 02:27:05 +00:00

suppress output when flushing unbound cache

This commit is contained in:
KiekerJan 2022-11-03 12:58:26 +01:00
parent 954828904b
commit 2ef097edd1
2 changed files with 2 additions and 2 deletions

View File

@ -120,7 +120,7 @@ def do_dns_update(env, force=False):
# Clear unbound's DNS cache so our own DNS resolver is up to date. # Clear unbound's DNS cache so our own DNS resolver is up to date.
# (ignore errors with trap=True) # (ignore errors with trap=True)
shell('check_call', ["/usr/sbin/unbound-control", "flush_zone", "."], trap=True) shell('check_call', ["/usr/sbin/unbound-control", "flush_zone", ".", "-q"], trap=True)
if len(updated_domains) == 0: if len(updated_domains) == 0:
# if nothing was updated (except maybe OpenDKIM's files), don't show any output # if nothing was updated (except maybe OpenDKIM's files), don't show any output

View File

@ -56,7 +56,7 @@ def run_checks(rounded_values, env, output, pool, domains_to_check=None):
# clear unbound's DNS cache so our DNS checks are up to date # clear unbound's DNS cache so our DNS checks are up to date
# (ignore errors; if unbound isn't running we'd already report # (ignore errors; if unbound isn't running we'd already report
# that in run_services checks.) # that in run_services checks.)
shell('check_call', ["/usr/sbin/unbound-control", "flush_zone", "."], trap=True) shell('check_call', ["/usr/sbin/unbound-control", "flush_zone", ".", "-q"], trap=True)
run_system_checks(rounded_values, env, output) run_system_checks(rounded_values, env, output)