summaryrefslogtreecommitdiffstats
path: root/ctdb/config/events.d/11.natgw
diff options
context:
space:
mode:
authorRonnie Sahlberg <ronniesahlberg@gmail.com>2009-09-15 13:35:58 +1000
committerRonnie Sahlberg <ronniesahlberg@gmail.com>2009-09-15 13:35:58 +1000
commit59cacded72dc83d8cc81f840abf1801dcd361401 (patch)
treecb046bcee36be1a0b85e9859f93a209cd40bbe26 /ctdb/config/events.d/11.natgw
parentc3556c3d88207e558484ddb5a9139c2b6e705d53 (diff)
downloadsamba-59cacded72dc83d8cc81f840abf1801dcd361401.tar.gz
samba-59cacded72dc83d8cc81f840abf1801dcd361401.tar.xz
samba-59cacded72dc83d8cc81f840abf1801dcd361401.zip
try to restart statd everytime it fails, not just the first time
(This used to be ctdb commit 4f7b39a4871af28df1c4545ec37db179fa47a7da)
Diffstat (limited to 'ctdb/config/events.d/11.natgw')
-rw-r--r--ctdb/config/events.d/11.natgw2
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