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 887180a529
commit 28e4afe72d
Signed by: Georg
GPG Key ID: 1DAF57F49F8E8F22

View File

@ -5,6 +5,7 @@ Pulls DKIM information from Mailcow.
Created and Last modified: 13/09/2021 by Georg Pfuetzenreuter <georg@lysergic.dev> Created and Last modified: 13/09/2021 by Georg Pfuetzenreuter <georg@lysergic.dev>
""" """
import requests import requests
import sys import sys
import os import os
@ -138,8 +139,6 @@ else:
print(status) print(status)
print(response.json()) print(response.json())
sys.exit(1) sys.exit(1)
print("Done.")
sys.exit(0)
print("Patching DKIM ...") print("Patching DKIM ...")
payload = { payload = {
"rrsets": [{"name": selector + "._domainkey." + domain + ".", "type": "TXT", "ttl": "3600", "changetype": "REPLACE", "records": [{"content": "\""+ txtshould + "\"", "disabled": False, "name": selector + "._domainkey." + domain + "."}]}] "rrsets": [{"name": selector + "._domainkey." + domain + ".", "type": "TXT", "ttl": "3600", "changetype": "REPLACE", "records": [{"content": "\""+ txtshould + "\"", "disabled": False, "name": selector + "._domainkey." + domain + "."}]}]