mirror of
https://github.com/frappe/bench.git
synced 2025-01-08 00:04:38 +00:00
Test
This commit is contained in:
parent
8f39df5c34
commit
5c980dce10
@ -144,6 +144,13 @@ 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 \
|
||||
@ -167,5 +174,6 @@ def setup_wildcard_ssl(domain, email, bench_path, exclude_base_domain):
|
||||
setup_crontab()
|
||||
|
||||
make_nginx_conf(bench_path)
|
||||
print("Restrting Nginx service")
|
||||
service('nginx', 'restart')
|
||||
|
Loading…
Reference in New Issue
Block a user