You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by ap...@apache.org on 2013/07/29 14:20:24 UTC

git commit: updated refs/heads/master to 62d84d1

Updated Branches:
  refs/heads/master a8387568f -> 62d84d119


Cloudstack-3882 remove duplicate entres of dataserver from /etc/hosts

Signed-off-by: Abhinandan Prateek <ap...@apache.org>


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/62d84d11
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/62d84d11
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/62d84d11

Branch: refs/heads/master
Commit: 62d84d119a28b0653aef767b69792ce4a1e52d22
Parents: a838756
Author: Bharat Kumar <bh...@citrix.com>
Authored: Sun Jul 28 10:31:26 2013 +0530
Committer: Abhinandan Prateek <ap...@apache.org>
Committed: Mon Jul 29 17:50:02 2013 +0530

----------------------------------------------------------------------
 patches/systemvm/debian/config/etc/init.d/cloud-early-config | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/62d84d11/patches/systemvm/debian/config/etc/init.d/cloud-early-config
----------------------------------------------------------------------
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 c0a7189..c12ca74 100755
--- a/patches/systemvm/debian/config/etc/init.d/cloud-early-config
+++ b/patches/systemvm/debian/config/etc/init.d/cloud-early-config
@@ -714,6 +714,8 @@ setup_dnsmasq() {
   [ $ETH0_IP ] && echo "dhcp-option=6,$NS" >> /etc/dnsmasq.conf
   [ $ETH0_IP6 ] && echo "dhcp-option=option6:dns-server,$NS6" >> /etc/dnsmasq.conf
 #adding the name data-server to the /etc/hosts for allowing the access to user-data service and ssh-key reset in every subnet.
+  //removing the existing entires to avoid duplicates on restarts.
+  sed -i  '/data-server/d' /etc/hosts
   if [ -n "$ETH0_IP" ]
           then
            echo "$ETH0_IP data-server" >> /etc/hosts