updated templates and scripts for Airship 1.3
[yaml_builds.git] / tools / j2 / set_site_env.sh
index 1639808..bfb62dc 100755 (executable)
 # limitations under the License.                                             #
 ##############################################################################
 
+{% if 'site_type' in yaml %}
+export SITE_TYPE={{yaml.site_type}}
+echo SITE_TYPE=$SITE_TYPE
+export AIRSHIP_TREASUREMAP=/opt/akraino/yaml_builds/site_type/{{yaml.site_type}}/treasuremap
+echo AIRSHIP_TREASUREMAP=$AIRSHIP_TREASUREMAP
+export AIRSHIP_TEMPLATES=/opt/akraino/yaml_builds/site_type/{{yaml.site_type}}/templates/
+echo AIRSHIP_TEMPLATES=$AIRSHIP_TEMPLATES
+{% endif %}
 export GENESIS_HOST={{yaml.genesis.host}}
 echo GENESIS_HOST=$GENESIS_HOST
 export PXE_INTERFACE={{yaml.networks.pxe.interface}}