From ab6cc5164f4419a85b0b79df8c29deb238148af9 Mon Sep 17 00:00:00 2001 From: Saurabh Date: Fri, 29 Jun 2018 13:37:03 +0530 Subject: [PATCH] check if dns mutitenancy is active --- bench/config/lets_encrypt.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bench/config/lets_encrypt.py b/bench/config/lets_encrypt.py index 26a7e682..6484fac4 100755 --- a/bench/config/lets_encrypt.py +++ b/bench/config/lets_encrypt.py @@ -121,6 +121,10 @@ def renew_certs(): def setup_wildcard_ssl(domain, email, bench_path): get_certbot() + if not get_config(bench_path).get("dns_multitenant"): + print("You cannot setup SSL without DNS Multitenancy") + return + email_param = '' if email: email_param = '--email {0}'.format(email)