Refactor function

This commit is contained in:
VirtuBox
2019-08-30 08:09:27 +02:00
parent ebea1e5e7d
commit 01c1c3909c
2 changed files with 14 additions and 14 deletions

View File

@@ -761,7 +761,8 @@ class WOSiteCreateController(CementBaseController):
(not pargs.letsencrypt == 'wildcard')):
wo_subdomain = True
# check if a wildcard cert for the root domain exist
if checkWildcardExist(self, wo_root_domain):
isWildcard = checkWildcardExist(self, wo_root_domain)
if isWildcard is True:
# copy the cert from the root domain
copyWildcardCert(self, wo_domain, wo_root_domain)
else: