Fix wo site info
This commit is contained in:
@@ -137,7 +137,7 @@ class WOSiteController(CementBaseController):
|
|||||||
Log.error(self, 'could not input site name')
|
Log.error(self, 'could not input site name')
|
||||||
pargs.site_name = pargs.site_name.strip()
|
pargs.site_name = pargs.site_name.strip()
|
||||||
(wo_domain, wo_www_domain) = ValidateDomain(pargs.site_name)
|
(wo_domain, wo_www_domain) = ValidateDomain(pargs.site_name)
|
||||||
wo_domain_type, wo_root_domain = GetDomainlevel(wo_domain)
|
(wo_domain_type, wo_root_domain) = GetDomainlevel(wo_domain)
|
||||||
wo_db_name = ''
|
wo_db_name = ''
|
||||||
wo_db_user = ''
|
wo_db_user = ''
|
||||||
wo_db_pass = ''
|
wo_db_pass = ''
|
||||||
@@ -162,6 +162,11 @@ class WOSiteController(CementBaseController):
|
|||||||
ssl = ("enabled" if siteinfo.is_ssl else "disabled")
|
ssl = ("enabled" if siteinfo.is_ssl else "disabled")
|
||||||
if (ssl == "enabled"):
|
if (ssl == "enabled"):
|
||||||
sslprovider = "Lets Encrypt"
|
sslprovider = "Lets Encrypt"
|
||||||
|
if os.path.islink("{0}/conf/nginx/ssl.conf"
|
||||||
|
.format(wo_site_webroot)):
|
||||||
|
sslexpiry = str(
|
||||||
|
SSL.getExpirationDate(self, wo_root_domain))
|
||||||
|
else:
|
||||||
sslexpiry = str(SSL.getExpirationDate(self, wo_domain))
|
sslexpiry = str(SSL.getExpirationDate(self, wo_domain))
|
||||||
else:
|
else:
|
||||||
sslprovider = ''
|
sslprovider = ''
|
||||||
@@ -1271,6 +1276,7 @@ class WOSiteUpdateController(CementBaseController):
|
|||||||
wo_subdomain = False
|
wo_subdomain = False
|
||||||
wo_wildcard = False
|
wo_wildcard = False
|
||||||
|
|
||||||
|
if not wo_subdomain:
|
||||||
if letsencrypt is check_ssl:
|
if letsencrypt is check_ssl:
|
||||||
if letsencrypt is False:
|
if letsencrypt is False:
|
||||||
Log.error(self, "SSl is not configured for given "
|
Log.error(self, "SSl is not configured for given "
|
||||||
|
|||||||
Reference in New Issue
Block a user