From 16f930572e47fe1730461d6c8e91b3b78969c906 Mon Sep 17 00:00:00 2001 From: Emmanuel Garette Date: Sat, 1 Oct 2022 19:23:14 +0200 Subject: [PATCH] remove comment --- seed/letsencrypt/funcs/letsencrypt.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/seed/letsencrypt/funcs/letsencrypt.py b/seed/letsencrypt/funcs/letsencrypt.py index 9a2ba330..2c67f280 100644 --- a/seed/letsencrypt/funcs/letsencrypt.py +++ b/seed/letsencrypt/funcs/letsencrypt.py @@ -8,6 +8,7 @@ from os import makedirs as _makedirs _HERE = _dirname(_abspath(__main__.__file__)) +_HERE = '/home/gnunux/git/risotto/risotto' _LE_DIR = _join(_HERE, 'pki', 'letsencrypt') _X509_DIR = _join(_HERE, 'pki', 'x509') @@ -33,7 +34,7 @@ def letsencrypt_certif(domain: str, with open(date_file, 'r') as fh: letsencrypt_date = fh.read().strip() if letsencrypt_date != today: - print(f"Obtain or renew Let's Encrypt certificate for {domain}...") +# print(f"Obtain or renew Let's Encrypt certificate for {domain}...") cli_args = ['certbot', 'certonly', f'--dns-{plugin_name}', @@ -58,7 +59,7 @@ def letsencrypt_certif(domain: str, if ret.returncode != 0: print("FIXME") #raise ValueError(ret.stderr.decode()) - print("Done") +# print("Done") with open(date_file, 'w') as fh: fh.write(today) rootdir = _join(_X509_DIR, f'{authority_name}+{authority_cn}')