Repository: cloudstack
Updated Branches:
  refs/heads/4.4-forward 328df6f95 -> 46f2b6137


CLOUDSTACK-3540: Fix edithosts.sh on matching tag


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

Branch: refs/heads/4.4-forward
Commit: 46f2b61374c2012bca251c1de58fb1250e50b755
Parents: 328df6f
Author: Sheng Yang <sheng.y...@citrix.com>
Authored: Fri Jun 27 17:16:56 2014 -0700
Committer: Sheng Yang <sheng.y...@citrix.com>
Committed: Fri Jun 27 17:16:56 2014 -0700

----------------------------------------------------------------------
 systemvm/patches/debian/config/opt/cloud/bin/edithosts.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/46f2b613/systemvm/patches/debian/config/opt/cloud/bin/edithosts.sh
----------------------------------------------------------------------
diff --git a/systemvm/patches/debian/config/opt/cloud/bin/edithosts.sh 
b/systemvm/patches/debian/config/opt/cloud/bin/edithosts.sh
index a07f40d..4912bce 100755
--- a/systemvm/patches/debian/config/opt/cloud/bin/edithosts.sh
+++ b/systemvm/patches/debian/config/opt/cloud/bin/edithosts.sh
@@ -191,7 +191,7 @@ then
   echo "dhcp-optsfile=$DHCP_OPTS" >> /etc/dnsmasq.conf
 
   tag=$(echo $ipv4 | tr '.' '_')
-  sed -i /$tag/d $DHCP_OPTS
+  sed -i /$tag,/d $DHCP_OPTS
   if [ "$dflt" == "0.0.0.0" ]
   then
     logger -t cloud "$0: unset default router for $ipv4"

Reply via email to