ctdb: use properly configured ctdb in 10.external
authorMichael Adam <obnox@samba.org>
Wed, 8 Jun 2016 11:22:44 +0000 (13:22 +0200)
committerMartin Schwenke <martins@samba.org>
Sat, 11 Jun 2016 04:20:14 +0000 (06:20 +0200)
Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Martin Schwenke <martin@meltin.net>
ctdb/config/events.d/10.external

index 3fcb0e1..40f4680 100644 (file)
@@ -28,12 +28,12 @@ takeover_assigned_ips ()
 {
     ctdb_get_pnn
 
-    ctdb -X ip |
+    $CTDB -X ip |
     awk -F'|' '{print $2}' |
     while read ip ; do
        if [ -n "$(ip_maskbits_iface $ip)" ] ; then
            echo "Assigning $ip to this node ($pnn)"
-           ctdb moveip "$ip" "$pnn"
+           $CTDB moveip "$ip" "$pnn"
        fi
     done
 }