diff --git a/seed/letsencrypt/funcs/letsencrypt.py b/seed/letsencrypt/funcs/letsencrypt.py index 9a2ba33..2c67f28 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}')