forked from stove/dataset
remove comment
This commit is contained in:
parent
97e74efd17
commit
16f930572e
1 changed files with 3 additions and 2 deletions
|
@ -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}')
|
||||
|
|
Loading…
Reference in a new issue