loading parent data

This commit is contained in:
David Edwards
2023-12-08 16:11:19 -07:00
parent 20d513f224
commit 7a35419dd5
2 changed files with 11 additions and 2 deletions

View File

@@ -67,6 +67,11 @@ def setupdomain(self, data):
wo_domain_name = data['site_name']
wo_site_webroot = data['webroot']
if 'subsite' in data.keys() and data['subsite']:
wo_parent_site = data["subsite_name"]
wo_parent_info = getSiteInfo(wo_parent_site)
data["webroot"] = wo_parent_info["webroot"]
# Check if nginx configuration already exists
# if os.path.isfile('/etc/nginx/sites-available/{0}'
# .format(wo_domain_name)):