summaryrefslogtreecommitdiffstats
path: root/boot/policy_vm_init.sh
diff options
context:
space:
mode:
authorplatania <platania@research.att.com>2017-02-22 11:20:22 -0500
committerplatania <platania@research.att.com>2017-02-22 11:20:22 -0500
commit4f98547c03dc9c8a295ae46e066ff09dd961d5a3 (patch)
tree5e7762e108feb7c81d1e7290a643ff611e9371f6 /boot/policy_vm_init.sh
parent8df4a643ae0d43a71e6e86c6be148386d99990ff (diff)
pointing boot scripts to LF
Change-Id: I60094d422a5bf013f878e6efbee7a04c605f4045 Signed-off-by: platania <platania@research.att.com>
Diffstat (limited to 'boot/policy_vm_init.sh')
-rw-r--r--boot/policy_vm_init.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/boot/policy_vm_init.sh b/boot/policy_vm_init.sh
index ad71cf0e..af4638c9 100644
--- a/boot/policy_vm_init.sh
+++ b/boot/policy_vm_init.sh
@@ -5,5 +5,12 @@ NEXUS_PASSWD=$(cat /opt/config/nexus_password.txt)
NEXUS_DOCKER_REPO=$(cat /opt/config/nexus_docker_repo.txt)
cd /opt/policy
+git pull
+cd /opt
+
+chmod +x policy/config/drools/drools-tweaks.sh
+IP_ADDRESS=$(ifconfig eth0 | grep "inet addr" | tr -s ' ' | cut -d' ' -f3 | cut -d':' -f2)
+echo $IP_ADDRESS > /opt/policy/config/pe/ip_addr.txt
+
docker login -u $NEXUS_USERNAME -p $NEXUS_PASSWD $NEXUS_DOCKER_REPO
/opt/docker/docker-compose up -d