2
0
mirror of https://github.com/frappe/bench.git synced 2024-09-23 04:29:02 +00:00

[fix] syntax fixes

This commit is contained in:
Saurabh 2018-07-02 11:56:13 +05:30
parent 364cd8fe1b
commit 41e227cff1
2 changed files with 1 additions and 8 deletions

View File

@ -135,7 +135,7 @@ def setup_letsencrypt(site, custom_domain, non_interactive):
def setup_wildcard_ssl(domain, email, exclude_base_domain):
''' Setup wildcard ssl certificate '''
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')

View File

@ -144,13 +144,6 @@ def setup_wildcard_ssl(domain, email, bench_path, exclude_base_domain):
if 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:
exec_cmd("{path} certonly --manual --preferred-challenges=dns {email_param} \
--server https://acme-v02.api.letsencrypt.org/directory \