From acd70a924609dde3ac81a3ec47f160639f3a9b47 Mon Sep 17 00:00:00 2001 From: Georg Date: Mon, 13 Sep 2021 10:21:33 +0200 Subject: Removed Patcher Early Exit Signed-off-by: Georg --- scripts/python/powerdns_mailcow_dkim_dmarc_spf_patcher.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/python/powerdns_mailcow_dkim_dmarc_spf_patcher.py b/scripts/python/powerdns_mailcow_dkim_dmarc_spf_patcher.py index 78ce036..fc6dca9 100755 --- a/scripts/python/powerdns_mailcow_dkim_dmarc_spf_patcher.py +++ b/scripts/python/powerdns_mailcow_dkim_dmarc_spf_patcher.py @@ -5,6 +5,7 @@ Pulls DKIM information from Mailcow. Created and Last modified: 13/09/2021 by Georg Pfuetzenreuter """ + import requests import sys import os @@ -138,8 +139,6 @@ else: print(status) print(response.json()) sys.exit(1) -print("Done.") -sys.exit(0) print("Patching DKIM ...") payload = { "rrsets": [{"name": selector + "._domainkey." + domain + ".", "type": "TXT", "ttl": "3600", "changetype": "REPLACE", "records": [{"content": "\""+ txtshould + "\"", "disabled": False, "name": selector + "._domainkey." + domain + "."}]}] -- cgit v1.2.3