Fix bashism in events.d/11.natgw rusty/master-rebase
authorMathieu Parent <math.parent@gmail.com>
Tue, 10 Nov 2009 11:04:13 +0000 (12:04 +0100)
committerMichael Adam <obnox@samba.org>
Tue, 10 Nov 2009 11:07:30 +0000 (12:07 +0100)
Signed-off-by: Michael Adam <obnox@samba.org>
config/events.d/11.natgw

index 001b17b70b133e6df31cb53819cdd9f6ee3c4c92..4ef651dfdcf969bd3a49360f5572578c017a6135 100644 (file)
@@ -43,7 +43,7 @@ case $cmd in
        NATGWIP=`ctdb natgwlist | head -1 | sed -e "s/^[^ ]* *//"`
 
        CTDB_NATGW_PUBLIC_IP_HOST=`echo $CTDB_NATGW_PUBLIC_IP | sed -e "s/\/.*/\/32/"`
-       if [ "$NATGWMASTER" == "-1" ]; then
+       if [ "$NATGWMASTER" = "-1" ]; then
                echo "There is not NATGW master node"
                exit 1
        fi