try to restart statd everytime it fails, not just the first time
[sahlberg/ctdb.git] / config / events.d / 11.natgw
index bd3119727ea34b32de4c7cae8fc0384d6081099d..63820561db6a9ebbd14fc34bde0479736268c101 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