2
0
mirror of https://github.com/frappe/bench.git synced 2024-11-11 15:51:03 +00:00
This commit is contained in:
Saurabh 2018-07-02 11:44:11 +05:30
parent 8f39df5c34
commit 5c980dce10

View File

@ -144,6 +144,13 @@ 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 \
@ -167,5 +174,6 @@ def setup_wildcard_ssl(domain, email, bench_path, exclude_base_domain):
setup_crontab() setup_crontab()
make_nginx_conf(bench_path) make_nginx_conf(bench_path)
print("Restrting Nginx service")
service('nginx', 'restart') service('nginx', 'restart')