git.samba.org
/
garming
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
724afb2
)
Fix bashism in natgw eventscript.
author
Mathieu Parent
<math.parent@gmail.com>
Thu, 27 Aug 2009 21:35:03 +0000
(23:35 +0200)
committer
Michael 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
patch
|
blob
|
history
diff --git
a/ctdb/config/events.d/11.natgw
b/ctdb/config/events.d/11.natgw
index 63820561db6a9ebbd14fc34bde0479736268c101..bd3119727ea34b32de4c7cae8fc0384d6081099d 100644
(file)
--- 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