Removed Patcher Early Exit
Signed-off-by: Georg <georg@lysergic.dev>
This commit is contained in:
parent
887180a529
commit
28e4afe72d
@ -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 + "."}]}]
|
||||||
|
Loading…
Reference in New Issue
Block a user