diff options
Diffstat (limited to 'boot/policy_vm_init.sh')
-rw-r--r-- | boot/policy_vm_init.sh | 7 |
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 |