2
0
mirror of https://github.com/frappe/bench.git synced 2024-09-22 20:19:01 +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:
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')