diff --git a/config/confluence-init.properties.j2 b/config/confluence-init.properties.j2 index b2ecc60..43ff300 100644 --- a/config/confluence-init.properties.j2 +++ b/config/confluence-init.properties.j2 @@ -1 +1 @@ -confluence.home = {{ atl_product_home }} +confluence.home = {{ atl_product_home | default(confluence_home) | default('') }} diff --git a/config/confluence.cfg.xml.j2 b/config/confluence.cfg.xml.j2 index 80a2009..3453e93 100644 --- a/config/confluence.cfg.xml.j2 +++ b/config/confluence.cfg.xml.j2 @@ -39,8 +39,8 @@ {% if atl_cluster_type is defined %} true {{ atl_cluster_name }} - {{ atl_product_home_shared }} - {{ atl_product_home_shared }} + {{ atl_product_home_shared | default(confluence_shared_home) | default('') }} + {{ atl_product_home_shared | default(confluence_shared_home) | default('') }} {{ atl_cluster_type }} {% if atl_cluster_type == 'aws' %} diff --git a/entrypoint.py b/entrypoint.py index e62bc66..12ffd2b 100755 --- a/entrypoint.py +++ b/entrypoint.py @@ -40,10 +40,6 @@ env = {k.lower(): v for k, v in os.environ.items() if k.startswith(('ATL_', 'CONFLUENCE_', 'RUN_', 'CATALINA_'))} -# For compatability with the Ansible templates. -env['atl_product_home'] = env['confluence_home'] -env['atl_product_home_shared'] = env.get('confluence_shared_home') - ###################################################################### # Generate all configuration files for Confluence