From 8cca0f0625649902028772c1fe16e778bb4b5afb Mon Sep 17 00:00:00 2001 From: Illia Chub Date: Mon, 4 Jan 2021 16:00:44 +0200 Subject: [PATCH] Removed path independent checks as a proof-of-concept failed --- main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index a9a65d7..0f177e4 100644 --- a/main.py +++ b/main.py @@ -13,10 +13,10 @@ def uname(): return jsonify(uname) @app.route("/getDKIM", methods=["GET"]) def getDkimKey(): - with open("domain") as domainFile: + with open("/var/domain") as domainFile: domain = domainFile.readline() domain = domain.rstrip("\n") - dkim = subprocess.check_output(["cat", domain + ".selector.txt"]) + dkim = subprocess.check_output(["cat", "/var/dkim/" + domain + ".selector.txt"]) return jsonify(dkim) @app.route("/pythonVersion", methods=["GET"]) def getPythonVersion():