Fix bashism in natgw eventscript.
authorMathieu Parent <math.parent@gmail.com>
Thu, 27 Aug 2009 21:35:03 +0000 (23:35 +0200)
committerMichael Adam <obnox@samba.org>
Wed, 9 Sep 2009 07:52:12 +0000 (09:52 +0200)
Signed-off-by: Michael Adam <obnox@samba.org>
(This used to be ctdb commit 4fad47c1af8503385b090be281ffbd284021279c)

ctdb/config/events.d/11.natgw

index 63820561db6a9ebbd14fc34bde0479736268c101..bd3119727ea34b32de4c7cae8fc0384d6081099d 100644 (file)
@@ -50,7 +50,7 @@ case $cmd in
 
        delete_all
 
-       if [ "$MYPNN" == "$NATGWMASTER" ]; then
+       if [ "$MYPNN" = "$NATGWMASTER" ]; then
                # This is the first node, set it up as the NAT GW
                echo 1 >/proc/sys/net/ipv4/ip_forward
                iptables -A POSTROUTING -t nat -s $CTDB_NATGW_PRIVATE_NETWORK -d ! $CTDB_NATGW_PRIVATE_NETWORK -j MASQUERADE