diff options
author | Georg | 2021-09-13 10:21:33 +0200 |
---|---|---|
committer | Georg | 2021-09-13 10:21:33 +0200 |
commit | acd70a924609dde3ac81a3ec47f160639f3a9b47 (patch) | |
tree | ca3c118b354ba0e5ea6d7cfa7c3c40eaf30fe976 /scripts | |
parent | 1de6e9a007eb892f92b735621426ca77db04e872 (diff) | |
download | system-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')
-rwxr-xr-x | scripts/python/powerdns_mailcow_dkim_dmarc_spf_patcher.py | 3 |
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 + "."}]}] |