From 27eed530eeece1de1de905eecc8f725375d21c09 Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Tue, 30 Oct 2012 10:44:05 +0000 Subject: [PATCH] deployment: set dns + gateway config on DEFAULT_INSTALL_DEV From: Michael Prokop --- deployment.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/deployment.sh b/deployment.sh index bd428cc..41cb2a7 100755 --- a/deployment.sh +++ b/deployment.sh @@ -1199,12 +1199,12 @@ if "$PRO_EDITION" ; then ngcp-network --host=$ROLE --set-interface=$DEFAULT_INSTALL_DEV --ip=auto --netmask=auto --hwaddr=auto ngcp-network --host=$ROLE --set-interface=$INTERNAL_DEV --ip=auto --netmask=auto --hwaddr=auto for nameserver in $(awk '/^nameserver/ {print $2}' /etc/resolv.conf) ; do - ngcp-network --host=$ROLE --set-interface=$INTERNAL_DEV --dns=\$nameserver + ngcp-network --host=$ROLE --set-interface=$DEFAULT_INSTALL_DEV --dns=\$nameserver done - GW=$(ip route show dev $INTERNAL_DEV | awk '/^default via/ {print $3}') + GW=$(ip route show dev $DEFAULT_INSTALL_DEV | awk '/^default via/ {print $3}') if [ -n "\$GW" ] ; then - ngcp-network --host=$ROLE --set-interface=$INTERNAL_DEV --gateway="\$GW" + ngcp-network --host=$ROLE --set-interface=$DEFAULT_INSTALL_DEV --gateway="\$GW" fi ngcp-network --host=$ROLE --peer=$PEER