mirror of
https://github.com/frappe/bench.git
synced 2024-11-11 15:51:03 +00:00
[fix] syntax fixes
This commit is contained in:
parent
364cd8fe1b
commit
41e227cff1
@ -135,7 +135,7 @@ def setup_letsencrypt(site, custom_domain, non_interactive):
|
|||||||
def setup_wildcard_ssl(domain, email, exclude_base_domain):
|
def setup_wildcard_ssl(domain, email, exclude_base_domain):
|
||||||
''' Setup wildcard ssl certificate '''
|
''' Setup wildcard ssl certificate '''
|
||||||
from bench.config.lets_encrypt import setup_wildcard_ssl
|
from bench.config.lets_encrypt import setup_wildcard_ssl
|
||||||
setup_wildcard_ssl(domain, email, bench_path='.', exclude_base_domain)
|
setup_wildcard_ssl(domain, email, bench_path='.', exclude_base_domain=exclude_base_domain)
|
||||||
|
|
||||||
|
|
||||||
@click.command('procfile')
|
@click.command('procfile')
|
||||||
|
@ -144,13 +144,6 @@ def setup_wildcard_ssl(domain, email, bench_path, exclude_base_domain):
|
|||||||
if email:
|
if email:
|
||||||
email_param = '--email {0}'.format(email)
|
email_param = '--email {0}'.format(email)
|
||||||
|
|
||||||
|
|
||||||
print("{path} certonly --manual --preferred-challenges=dns {email_param} \
|
|
||||||
--server https://acme-v02.api.letsencrypt.org/directory \
|
|
||||||
--agree-tos -d {domain}".format(path=get_certbot_path(), domain=' -d '.join(domain_list),
|
|
||||||
email_param=email_param))
|
|
||||||
return
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
exec_cmd("{path} certonly --manual --preferred-challenges=dns {email_param} \
|
exec_cmd("{path} certonly --manual --preferred-challenges=dns {email_param} \
|
||||||
--server https://acme-v02.api.letsencrypt.org/directory \
|
--server https://acme-v02.api.letsencrypt.org/directory \
|
||||||
|
Loading…
Reference in New Issue
Block a user