Removed Patcher Early Exit

Signed-off-by: Georg <georg@lysergic.dev>
This commit is contained in:
Georg Pfuetzenreuter 2021-09-13 10:21:33 +02:00
parent 1de6e9a007
commit acd70a9246

View File

@ -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 + "."}]}]