diff options
author | platania <platania@research.att.com> | 2017-03-14 18:24:59 -0400 |
---|---|---|
committer | platania <platania@research.att.com> | 2017-03-14 18:24:59 -0400 |
commit | 2b5795c3773a1c568b1acdeb3f99463f57a0c072 (patch) | |
tree | bdd3dabe21b85723f6d0789d9a60d6292198a924 /boot/policy_vm_init.sh | |
parent | 2b556b22a1c446670a9e7f7030b24da136dbf45b (diff) |
update init scripts
Change-Id: If1b4a67fb5fda5125dc65b801974d1d1badc1364
Signed-off-by: platania <platania@research.att.com>
Diffstat (limited to 'boot/policy_vm_init.sh')
-rw-r--r-- | boot/policy_vm_init.sh | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/boot/policy_vm_init.sh b/boot/policy_vm_init.sh index 7febca20..bdb89be8 100644 --- a/boot/policy_vm_init.sh +++ b/boot/policy_vm_init.sh @@ -10,7 +10,14 @@ cd /opt/policy git pull chmod +x config/drools/drools-tweaks.sh -IP_ADDRESS=$(ifconfig eth0 | grep "inet addr" | tr -s ' ' | cut -d' ' -f3 | cut -d':' -f2) + +if [ -e /opt/config/public_ip.txt ] +then + IP_ADDRESS=$(cat /opt/config/public_ip.txt) +else + IP_ADDRESS=$(ifconfig eth0 | grep "inet addr" | tr -s ' ' | cut -d' ' -f3 | cut -d':' -f2) +fi + echo $IP_ADDRESS > config/pe/ip_addr.txt docker login -u $NEXUS_USERNAME -p $NEXUS_PASSWD $NEXUS_DOCKER_REPO |