Fixed certbot args
This commit is contained in:
parent
a705746d29
commit
7b19268abc
1 changed files with 4 additions and 4 deletions
|
@ -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 "
|
||||
|
|
Loading…
Reference in a new issue