aboutsummaryrefslogtreecommitdiffstats
path: root/boot/policy_vm_init.sh
diff options
context:
space:
mode:
Diffstat (limited to 'boot/policy_vm_init.sh')
-rw-r--r--boot/policy_vm_init.sh5
1 files changed, 2 insertions, 3 deletions
diff --git a/boot/policy_vm_init.sh b/boot/policy_vm_init.sh
index af4638c9..6ebfac92 100644
--- a/boot/policy_vm_init.sh
+++ b/boot/policy_vm_init.sh
@@ -6,11 +6,10 @@ 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
+chmod +x 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
+echo $IP_ADDRESS > config/pe/ip_addr.txt
docker login -u $NEXUS_USERNAME -p $NEXUS_PASSWD $NEXUS_DOCKER_REPO
/opt/docker/docker-compose up -d