diff options
author | Jorge Hernandez <jh1730@att.com> | 2018-04-06 10:42:06 -0500 |
---|---|---|
committer | Jorge Hernandez <jh1730@att.com> | 2018-04-06 10:42:06 -0500 |
commit | f7d36027db7475454204da0f81865420970c3211 (patch) | |
tree | 77dac3d2e6f440d94d9f65283d66f3ef2a5a1b71 /boot | |
parent | f629942716821374d8c7d17567a89ee3896770ad (diff) |
heat install controllop app + brmsgw dep version
Change-Id: Ib641d1c50024c114a50d40954fc4b2dde3159d5c
Issue-ID: POLICY-735
Signed-off-by: Jorge Hernandez <jh1730@att.com>
Diffstat (limited to 'boot')
-rw-r--r-- | boot/policy_vm_init.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/boot/policy_vm_init.sh b/boot/policy_vm_init.sh index 80e1b644..b6b7d1fc 100644 --- a/boot/policy_vm_init.sh +++ b/boot/policy_vm_init.sh @@ -38,6 +38,17 @@ export DOCKER_REPOSITORY=${NEXUS_DOCKER_REPO} cd /opt/policy git pull +# download controlloop application + +export ARTIFACT_VERSION=$(cat /opt/config/artifacts_version.txt) + +chmod +x /opt/policy/config/drools/apps-install.sh +/opt/policy/config/drools/apps-install.sh controlloop ${ARTIFACT_VERSION} /opt/policy/config/drools + +# ensure brmsgw dependency configuration is set up correctly + +sed -i -e "s/^BRMS_DEPENDENCY_VERSION=.*$/BRMS_DEPENDENCY_VERSION=${ARTIFACT_VERSION}/g" /opt/policy/config/pe/brmsgw.conf + chmod +x config/drools/drools-tweaks.sh if [ -e /opt/config/public_ip.txt ] |