remove comment

This commit is contained in:
Emmanuel Garette 2022-10-01 19:23:14 +02:00
parent 97e74efd17
commit 16f930572e

View file

@ -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}')