From 95b56955b0431e2c597be10cbf6ab0c8a6b71851 Mon Sep 17 00:00:00 2001 From: Ruakij Date: Mon, 2 Aug 2021 15:41:13 +0200 Subject: [PATCH] Added absolute paths for creds and config for dnscontrol --- daemon.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/daemon.py b/daemon.py index 02a2239..2dfdb65 100755 --- a/daemon.py +++ b/daemon.py @@ -155,7 +155,7 @@ def adaptZoneName(zone): def dumpZoneData(zone, dumpFile): log.debug(f"{zone} |\tDumping to '{dumpFile}'..") - return os.system(f"dnscontrol get-zones --format=js --out={dumpFile} powerdns POWERDNS {zone}") + return os.system(f"dnscontrol get-zones --creds /data/creds.json --format=js --out={dumpFile} powerdns POWERDNS {zone}") def deleteFile(file): log.debug(f"Deleting file '{file}'") @@ -176,7 +176,7 @@ def adaptFileForRequire(zone, dumpFile): def dnscontrolPush(zone): log.debug(f'{zone} |\tPushing..') - return os.system(f"dnscontrol push --domains {zone}") + return os.system(f"dnscontrol push --config /data/dnsconfig.js --creds /data/creds.json --domains {zone}") if __name__ == "__main__": sys.exit(main(sys.argv))