Fixed certbot args

This commit is contained in:
jigen 2018-06-12 12:51:46 +02:00
parent a705746d29
commit 7b19268abc

View file

@ -134,11 +134,11 @@ def get_domain_list(config, ot_conn, dns_conn):
def acme_request(config, domain_name, acme_test='DNS-01', dryrun=False, domains_list=None):
args = config['certbot']['base_args']
if dryrun:
args += " --dry-run "
args += "-m {} ".format(config['certbot']['email'])
args += "--server {} ".format(config['certbot']['server'])
args += " -m {} ".format(config['certbot']['email'])
args += "--server {} ".format(config['certbot']['server'])
if dryrun:
args += "--dry-run "
if acme_test == 'DNS-01':
args += " --manual certonly "
args += "--preferred-challenges dns-01 "