mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2024-11-25 13:31:27 +00:00
Updated domain read mechanism
This commit is contained in:
parent
0b5c0de5a3
commit
08fd54dfee
1
main.py
1
main.py
|
@ -15,6 +15,7 @@ def uname():
|
||||||
def getDkimKey():
|
def getDkimKey():
|
||||||
with open("/var/domain") as domainFile:
|
with open("/var/domain") as domainFile:
|
||||||
domain = domainFile.readline()
|
domain = domainFile.readline()
|
||||||
|
domain = domain.rstrip("\n")
|
||||||
dkim = subprocess.check_output(["cat", "/var/dkim/" + domain + ".selector.txt"])
|
dkim = subprocess.check_output(["cat", "/var/dkim/" + domain + ".selector.txt"])
|
||||||
return jsonify(dkim)
|
return jsonify(dkim)
|
||||||
@app.route("/pythonVersion", methods=["GET"])
|
@app.route("/pythonVersion", methods=["GET"])
|
||||||
|
|
Loading…
Reference in a new issue