From 70294f3136ee5fc35e33f5cb8a359e4180453e53 Mon Sep 17 00:00:00 2001 From: Mathieu Parent Date: Thu, 27 Aug 2009 23:44:39 +0200 Subject: [PATCH] Fix bashism in nfstickle event script. Signed-off-by: Michael Adam (This used to be ctdb commit f7a326b560b12f8b46c01d98cdd460e5510c67fb) --- ctdb/config/events.d/61.nfstickle | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ctdb/config/events.d/61.nfstickle b/ctdb/config/events.d/61.nfstickle index 5fa62065bd4d..60c13bc61d9b 100755 --- a/ctdb/config/events.d/61.nfstickle +++ b/ctdb/config/events.d/61.nfstickle @@ -25,13 +25,12 @@ case $cmd in takeip) iface=$1 ip=$2 - shopt -s nullglob # first send a grat arp, to ensure the client knows the updated # mac address for this IP ctdb gratiousarp $ip $iface # send tickle acks for all the connections the old server had for f in $NFS_TICKLE_SHARED_DIRECTORY/*/$ip; do - cat $f | while read dest; do + [ -f $f ] && cat $f | while read dest; do dip=`echo $dest | cut -d: -f1` dport=`echo $dest | cut -d: -f2` # send three, in case of lost packets -- 2.34.1