]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
use the public addresses variable instead of hardcoding the path
authorRonnie Sahlberg <sahlberg@ronnie>
Tue, 11 Sep 2007 21:28:24 +0000 (07:28 +1000)
committerRonnie Sahlberg <sahlberg@ronnie>
Tue, 11 Sep 2007 21:28:24 +0000 (07:28 +1000)
(This used to be ctdb commit 8e23f173cda8a76bbc243863bfc49fe8c7b907f4)

ctdb/config/events.d/10.interface

index 7a85b1ac02d687cac38db669b11bd5c281c092e8..7b8411b36dae8f38d873ce6df4b22a884e2a7b32 100755 (executable)
@@ -29,7 +29,7 @@ case $cmd in
        echo 1 > /proc/sys/ipv4/conf/all/arp_filter
 
         # move all public addresses onto loopback
-        cat /etc/ctdb/public_addresses| cut -d/ -f1 | while read ip; do
+        cat $CTDB_PUBLIC_ADDRESSES | cut -d/ -f1 | while read ip; do
                 /sbin/ip addr add $ip/32 dev lo >/dev/null 2>/dev/null
         done
        ;;