diff options
Diffstat (limited to 'ctdb/config/events.d/11.natgw')
-rw-r--r-- | ctdb/config/events.d/11.natgw | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ctdb/config/events.d/11.natgw b/ctdb/config/events.d/11.natgw index bd3119727ea..63820561db6 100644 --- a/ctdb/config/events.d/11.natgw +++ b/ctdb/config/events.d/11.natgw @@ -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 |