summaryrefslogtreecommitdiffstats
path: root/scripts/python
diff options
context:
space:
mode:
authorGeorg2021-09-13 10:21:33 +0200
committerGeorg2021-09-13 10:21:33 +0200
commitacd70a924609dde3ac81a3ec47f160639f3a9b47 (patch)
treeca3c118b354ba0e5ea6d7cfa7c3c40eaf30fe976 /scripts/python
parent1de6e9a007eb892f92b735621426ca77db04e872 (diff)
downloadsystem-acd70a924609dde3ac81a3ec47f160639f3a9b47.tar.gz
system-acd70a924609dde3ac81a3ec47f160639f3a9b47.tar.bz2
system-acd70a924609dde3ac81a3ec47f160639f3a9b47.zip
Removed Patcher Early Exit
Signed-off-by: Georg <georg@lysergic.dev>
Diffstat (limited to 'scripts/python')
-rwxr-xr-xscripts/python/powerdns_mailcow_dkim_dmarc_spf_patcher.py3
1 files changed, 1 insertions, 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 <georg@lysergic.dev>
"""
+
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 + "."}]}]