From af45bf03ade993c64323d5a942b8d2cee69aa69a Mon Sep 17 00:00:00 2001 From: anthony Date: Thu, 5 Jul 2012 16:33:49 -0700 Subject: [PATCH] VPC : clean up host file for domr --- .../systemvm/debian/config/etc/init.d/cloud-early-config | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/patches/systemvm/debian/config/etc/init.d/cloud-early-config b/patches/systemvm/debian/config/etc/init.d/cloud-early-config index b141110a80e..18abf341671 100755 --- a/patches/systemvm/debian/config/etc/init.d/cloud-early-config +++ b/patches/systemvm/debian/config/etc/init.d/cloud-early-config @@ -569,6 +569,9 @@ EOF echo 'AVAHI_DAEMON_DETECT_LOCAL=0' > /etc/default/avahi-daemon hostname $NAME + sed -i /gateway/d /etc/hosts + sed -i /$NAME/d /etc/hosts + echo "$ETH0_IP $NAME" >> /etc/hosts #Nameserver sed -i -e "/^nameserver.*$/d" /etc/resolv.conf # remove previous entries sed -i -e "/^nameserver.*$/d" /etc/dnsmasq-resolv.conf # remove previous entries @@ -610,9 +613,6 @@ EOF sudo ip rule add from $VPCCIDR table static_route 2>/dev/null sudo ip rule add from $VPCCIDR table static_route_back 2>/dev/null - sed -i /gateway/d /etc/hosts - - echo "$ETH0_IP $NAME" >> /etc/hosts setup_sshd $ETH0_IP enable_svc dnsmasq 1