From 1d4c96240e17d25bde3125dfe9ae84c54701b05e Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Wed, 23 Jan 2013 14:46:46 +0000 Subject: [PATCH] deployment: do not fail with multiple nameserver entries From: Michael Prokop --- deployment.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/deployment.sh b/deployment.sh index f554c78..38d8388 100755 --- a/deployment.sh +++ b/deployment.sh @@ -1327,8 +1327,9 @@ if "$PRO_EDITION" ; then ngcp-network --host=$THIS_HOST --set-interface=$DEFAULT_INSTALL_DEV --shared-ip=none --shared-ipv6=none ngcp-network --host=$THIS_HOST --set-interface=$DEFAULT_INSTALL_DEV --ip=auto --netmask=auto --hwaddr=auto ngcp-network --host=$THIS_HOST --set-interface=$INTERNAL_DEV --ip=auto --netmask=auto --hwaddr=auto - for nameserver in $(awk '/^nameserver/ {print $2}' /etc/resolv.conf) ; do - ngcp-network --host=$THIS_HOST --set-interface=$DEFAULT_INSTALL_DEV --dns=\$nameserver + nameserver="$(awk '/^nameserver/ {print $2}' /etc/resolv.conf)" + for entry in \$nameserver ; do + ngcp-network --host=$THIS_HOST --set-interface=$DEFAULT_INSTALL_DEV --dns=\$entry done GW=$(ip route show dev $DEFAULT_INSTALL_DEV | awk '/^default via/ {print $3}')