mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2025-07-09 00:00:54 +00:00
Add management/dns_update.py --update
as an alternative to tools/dns_update.py that runs without the backend
This commit is contained in:
parent
e3ee800359
commit
3bfd4be982
@ -1099,6 +1099,8 @@ if __name__ == "__main__":
|
||||
env = load_environment()
|
||||
if sys.argv[-1] == "--lint":
|
||||
write_custom_dns_config(get_custom_dns_config(env), env)
|
||||
elif sys.argv[-1] == "--update":
|
||||
do_dns_update(env, force=True)
|
||||
else:
|
||||
for _zone, records in build_recommended_dns(env):
|
||||
for record in records:
|
||||
|
Loading…
Reference in New Issue
Block a user