Skip to content

Commit 67ce11d

Browse files
committed
Updating Certbot path to new install directory
1 parent fce9e4b commit 67ce11d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

https-rewrite.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ def main():
141141

142142
cert_name = argv[1]
143143
log_init()
144-
returncode, stdout, stderr = run_cmd(f'certbot certificates | grep "Certificate Name: {cert_name}" -A{LINES_AFTER} | grep "Domains: "')
144+
returncode, stdout, stderr = run_cmd(f'/opt/certbot/bin/certbot certificates | grep "Certificate Name: {cert_name}" -A{LINES_AFTER} | grep "Domains: "')
145145
if returncode != 0:
146146
return 1
147147

le-cert-renewal.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def log_cert_info(cert_name):
5353
log_path = f"{WORKING_FOLDER}/{CERT_LOG_FOLDER}/{cert_name}_{datetime_str}.log"
5454
if os.path.exists(f"{WORKING_FOLDER}/{CERT_LOG_FOLDER}") == False:
5555
os.mkdir(f"{WORKING_FOLDER}/{CERT_LOG_FOLDER}")
56-
run_cmd(f"certbot certificates > {log_path}")
56+
run_cmd(f"/opt/certbot/bin/certbot certificates > {log_path}")
5757

5858
def run_cmd(cmd):
5959
log_info(f"Execute command: {cmd}")
@@ -106,7 +106,7 @@ def main():
106106
return 1
107107

108108
log_info(f"Renewing cert: {cert_name}")
109-
renew_cmd = "certbot renew"
109+
renew_cmd = "/opt/certbot/bin/certbot renew"
110110
if IF_FORCE_RENEW:
111111
renew_cmd += " --force-renewal"
112112
returncode, stdout, stderr = run_cmd(renew_cmd)

0 commit comments

Comments
 (0)