1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2026-04-08 22:37:23 +02:00

simplify utils.py#shell method used by unbound-control call

This commit is contained in:
KiekerJan
2022-11-05 21:04:05 +01:00
parent 16728860f4
commit 210d9f08dc
3 changed files with 3 additions and 5 deletions

View File

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