From: Martin Schwenke Date: Wed, 2 Aug 2023 03:37:03 +0000 (+1000) Subject: ctdb-scripts: Use find_statd_sm_dir() in one more place X-Git-Tag: tdb-1.4.11~529 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ecb9545b3fbf9e6da238096f937cd3fb4fd503ec;p=thirdparty%2Fsamba.git ctdb-scripts: Use find_statd_sm_dir() in one more place Take advantage of new function find_statd_sm_dir() when clearing the local system statd state directory, so it uses the correct directory when running on a non-RH distro. Signed-off-by: Martin Schwenke Reviewed-by: Volker Lendecke --- diff --git a/ctdb/config/statd-callout b/ctdb/config/statd-callout index e276d6cee31..d1e49991f75 100755 --- a/ctdb/config/statd-callout +++ b/ctdb/config/statd-callout @@ -220,8 +220,8 @@ notify) # Delete the notification list for statd, we don't want it to # ping any clients - rm -f /var/lib/nfs/statd/sm/* - rm -f /var/lib/nfs/statd/sm.bak/* + dir=$(find_statd_sm_dir) + rm -f "${dir}/"* "${dir}.bak/"* # We must also let some time pass between stopping and # restarting the lock manager. Otherwise there is a window