mirror of
https://github.com/eduardogsilva/wireguard_webadmin.git
synced 2026-01-02 14:36:16 +00:00
add dns_version file to track current DNS version
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user