add dns_version file to track current DNS version

This commit is contained in:
Eduardo Silva
2025-12-31 19:17:46 -03:00
parent 847d162493
commit a93acf3fec

View File

@@ -36,6 +36,10 @@ def compress_dnsmasq_config():
if newest_conf_mtime <= tar_mtime:
return output_file
dns_version_file = os.path.join(base_dir, "config_version.conf")
with open(dns_version_file, "w", encoding="utf-8") as f:
f.write(f"DNS_VERSION={cluster_settings.dns_version}\n")
# Create tar.gz
tmp_output = output_file + ".tmp"
with tarfile.open(tmp_output, "w:gz") as tar: