Add debug.log

This commit is contained in:
VirtuBox
2019-08-30 08:17:18 +02:00
parent 01c1c3909c
commit 10b29e3ad5

View File

@@ -757,15 +757,25 @@ class WOSiteCreateController(CementBaseController):
else: else:
wo_wildcard = False wo_wildcard = False
wo_subdomain = False wo_subdomain = False
Log.debug(self, "Domain type = {0}"
.format(wo_domain_type))
if ((wo_domain_type == 'subdomain') and if ((wo_domain_type == 'subdomain') and
(not pargs.letsencrypt == 'wildcard')): (not pargs.letsencrypt == 'wildcard')):
wo_subdomain = True wo_subdomain = True
# check if a wildcard cert for the root domain exist # check if a wildcard cert for the root domain exist
Log.debug(self, "checkWildcardExist on *.{0}"
.format(wo_root_domain))
isWildcard = checkWildcardExist(self, wo_root_domain) isWildcard = checkWildcardExist(self, wo_root_domain)
if isWildcard is True: Log.debug(self, "isWildcard = {0}".format(isWildcard))
if isWildcard:
Log.debug(self, "symlink wildcard "
"cert between {0} & {1}"
.format(wo_domain, wo_root_domain))
# copy the cert from the root domain # copy the cert from the root domain
copyWildcardCert(self, wo_domain, wo_root_domain) copyWildcardCert(self, wo_domain, wo_root_domain)
else: else:
Log.debug(self, "Setup Cert with acme.sh for {0}"
.format(wo_domain))
setupLetsEncrypt(self, wo_domain, wo_subdomain, setupLetsEncrypt(self, wo_domain, wo_subdomain,
wo_wildcard, wo_dns, wo_acme_dns) wo_wildcard, wo_dns, wo_acme_dns)
else: else: