1
0
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:
Joshua Tauberer 2024-07-28 13:42:33 -04:00
parent e3ee800359
commit 3bfd4be982

View File

@ -1099,6 +1099,8 @@ if __name__ == "__main__":
env = load_environment() env = load_environment()
if sys.argv[-1] == "--lint": if sys.argv[-1] == "--lint":
write_custom_dns_config(get_custom_dns_config(env), env) write_custom_dns_config(get_custom_dns_config(env), env)
elif sys.argv[-1] == "--update":
do_dns_update(env, force=True)
else: else:
for _zone, records in build_recommended_dns(env): for _zone, records in build_recommended_dns(env):
for record in records: for record in records: