fix: Update to use absolute names in cert hooks to allow renewals from crontab
All checks were successful
Build Docker / Build_Docker (push) Successful in 1m11s
All checks were successful
Build Docker / Build_Docker (push) Successful in 1m11s
This commit is contained in:
6
cert.py
6
cert.py
@@ -7,11 +7,11 @@ import time
|
||||
|
||||
AUTH = ""
|
||||
# Check if token file exists
|
||||
if os.path.isfile("token"):
|
||||
if os.path.isfile("/root/hns_doh_loadbalancer/token"):
|
||||
print("ERROR: Token file not found")
|
||||
|
||||
# Read token from file
|
||||
with open("token", "r") as fh:
|
||||
with open("/root/hns_doh_loadbalancer/token", "r") as fh:
|
||||
AUTH = fh.read().strip()
|
||||
|
||||
# Check if token is empty
|
||||
@@ -132,4 +132,4 @@ if __name__ == "__main__":
|
||||
# Update the TXT record in acme-dns instance
|
||||
client.update_txt_record(VALIDATION_TOKEN)
|
||||
# Wait for the DNS to propagate for 60 seconds
|
||||
time.sleep(60)
|
||||
time.sleep(60)
|
||||
|
||||
Reference in New Issue
Block a user