incubator-cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From t..@apache.org
Subject git commit: virtual router: edithosts.sh cleanup fails on existing hosts
Date Fri, 14 Dec 2012 07:02:39 GMT
Updated Branches:
  refs/heads/master 988ccfc45 -> 15704cfa6


virtual router: edithosts.sh cleanup fails on existing hosts

The already deleted same hostname  is not deleted from /etc/hosts of
vRouter.

vRouter's /etc/hosts format:
$ip $host

This patch fixes deletion logic below.
sed -i /"$host "/d $HOSTS

Signed-off-by: Prasanna Santhanam <tsp@apache.org>


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

Branch: refs/heads/master
Commit: 15704cfa6cb26737342cb6293194da129147b976
Parents: 988ccfc
Author: Atsushi Midorikawa <midorika@stratosphere.co.jp>
Authored: Thu Dec 13 22:59:35 2012 -0800
Committer: Prasanna Santhanam <tsp@apache.org>
Committed: Thu Dec 13 23:02:14 2012 -0800

----------------------------------------------------------------------
 patches/systemvm/debian/config/root/edithosts.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/15704cfa/patches/systemvm/debian/config/root/edithosts.sh
----------------------------------------------------------------------
diff --git a/patches/systemvm/debian/config/root/edithosts.sh b/patches/systemvm/debian/config/root/edithosts.sh
index 3c6102d..37c75a5 100755
--- a/patches/systemvm/debian/config/root/edithosts.sh
+++ b/patches/systemvm/debian/config/root/edithosts.sh
@@ -88,7 +88,7 @@ echo "0 $mac $ip $host *" >> $DHCP_LEASES
 
 #edit hosts file as well
 sed -i  /"$ip "/d $HOSTS
-sed -i  /"$host "/d $HOSTS
+sed -i  /" $host$"/d $HOSTS
 echo "$ip $host" >> $HOSTS
 
 if [ "$dflt" != "" ]


Mime
View raw message