mirror of
https://github.com/chatmail/relay.git
synced 2026-05-19 04:18:09 +00:00
cmdeploy: enable running DNS zonefile check locally
This commit is contained in:
@@ -48,10 +48,13 @@ def check_full_zone(sshexec, remote_data, out, zonefile) -> int:
|
|||||||
"""Check existing DNS records, optionally write them to zone file
|
"""Check existing DNS records, optionally write them to zone file
|
||||||
and return (exitcode, remote_data) tuple."""
|
and return (exitcode, remote_data) tuple."""
|
||||||
|
|
||||||
required_diff, recommended_diff = sshexec.logged(
|
if sshexec in ["docker", "localhost"]:
|
||||||
remote.rdns.check_zonefile,
|
required_diff, recommended_diff = remote.rdns.check_zonefile(zonefile, remote_data["mail_domain"])
|
||||||
kwargs=dict(zonefile=zonefile, mail_domain=remote_data["mail_domain"]),
|
else:
|
||||||
)
|
required_diff, recommended_diff = sshexec.logged(
|
||||||
|
remote.rdns.check_zonefile,
|
||||||
|
kwargs=dict(zonefile=zonefile, mail_domain=remote_data["mail_domain"]),
|
||||||
|
)
|
||||||
|
|
||||||
returncode = 0
|
returncode = 0
|
||||||
if required_diff:
|
if required_diff:
|
||||||
|
|||||||
Reference in New Issue
Block a user