You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by ya...@apache.org on 2014/03/13 02:14:36 UTC

git commit: updated refs/heads/4.2 to 6baa053

Repository: cloudstack
Updated Branches:
  refs/heads/4.2 122761db3 -> 6baa0538a


CLOUDSTACK-5986: Fix dnsmasq lease judgement


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

Branch: refs/heads/4.2
Commit: 6baa0538a852f59d17f9b2372ec6ae96381e4b3d
Parents: 122761d
Author: Sheng Yang <sh...@citrix.com>
Authored: Wed Mar 12 18:14:05 2014 -0700
Committer: Sheng Yang <sh...@citrix.com>
Committed: Wed Mar 12 18:14:05 2014 -0700

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


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/6baa0538/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 8e7ddac..d6ff983 100755
--- a/patches/systemvm/debian/config/root/edithosts.sh
+++ b/patches/systemvm/debian/config/root/edithosts.sh
@@ -95,7 +95,7 @@ wait_for_dnsmasq () {
   return 1
 }
 
-if [ $dnsmasq_managed_lease ]
+if [ $dnsmasq_managed_lease -eq 1 ]
 then
   #release previous dhcp lease if present
   logger -t cloud "edithosts: releasing $ipv4"
@@ -212,7 +212,7 @@ pid=$(pidof dnsmasq)
 if [ "$pid" != "" ]
 then
   # use SIGHUP to avoid service outage if dhcp_release is available.
-  if [ $dnsmasq_managed_lease ]
+  if [ $dnsmasq_managed_lease -eq 1 ]
   then
     kill -HUP $pid
   else