Commit ca2c7b92 authored by Robin Fischer's avatar Robin Fischer

Use new variable name

parent 2eacec8c
......@@ -33,7 +33,7 @@ targetDir = args.targetDir
validation = os.environ["CERTBOT_VALIDATION"]
token = os.environ["CERTBOT_TOKEN"]
domain = os.environ["CERTBOT_DOMAIN"]
gitToken = os.environ["PRIVATE_TOKEN"]
gitToken = os.environ["GITLAB_API_TOKEN"]
fileName = domain + ".html"
......
......@@ -25,7 +25,7 @@ with open(args.privateKeyFile, "r") as file:
url = "https://gitlab.com/api/v4/projects/" + args.projectId + "/pages/domains/" + args.domain
headers = {"PRIVATE-TOKEN": os.environ["PRIVATE_TOKEN"]}
headers = {"PRIVATE-TOKEN": os.environ["GITLAB_API_TOKEN"]}
payload = { "certificate": publicKey, "key": privateKey }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment