From: Michael Adam Date: Wed, 8 Jun 2016 11:22:44 +0000 (+0200) Subject: ctdb: use properly configured ctdb in 10.external X-Git-Tag: tdb-1.3.10~894 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c9da418d7f9b162709646b668e1921bd075a05be;p=thirdparty%2Fsamba.git ctdb: use properly configured ctdb in 10.external Signed-off-by: Michael Adam Reviewed-by: Martin Schwenke --- diff --git a/ctdb/config/events.d/10.external b/ctdb/config/events.d/10.external index 3fcb0e105b5..40f4680e63c 100644 --- a/ctdb/config/events.d/10.external +++ b/ctdb/config/events.d/10.external @@ -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 }