events: 10.interfaces allow multiple interfaces per public address
authorStefan Metzmacher <metze@samba.org>
Mon, 21 Dec 2009 07:39:21 +0000 (08:39 +0100)
committerStefan Metzmacher <metze@samba.org>
Wed, 20 Jan 2010 10:10:58 +0000 (11:10 +0100)
metze

config/events.d/10.interface

index 71274c56783b6f09a1b18d37a65fe9733753c560..89e2a2eb4bdf8516a8832d529cfa4f00dee96c6f 100755 (executable)
@@ -113,7 +113,7 @@ case "$1" in
 
      monitor)
        INTERFACES=`cat $CTDB_PUBLIC_ADDRESSES | 
-               sed -e "s/^[^\t ]*[\t ]*//" -e "s/[\t ]*$//"`
+               sed -e "s/^[^\t ]*[\t ]*//" -e "s/,/ /g" -e "s/[\t ]*$//"`
 
        [ "$CTDB_PUBLIC_INTERFACE" ] && INTERFACES="$CTDB_PUBLIC_INTERFACE $INTERFACES"
        [ "$CTDB_NATGW_PUBLIC_IFACE" ] && INTERFACES="$CTDB_NATGW_PUBLIC_IFACE $INTERFACES"