]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
ctdb-scripts: Use find_statd_sm_dir() in one more place
authorMartin Schwenke <mschwenke@ddn.com>
Wed, 2 Aug 2023 03:37:03 +0000 (13:37 +1000)
committerVolker Lendecke <vl@samba.org>
Thu, 30 May 2024 11:42:30 +0000 (11:42 +0000)
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 <mschwenke@ddn.com>
Reviewed-by: Volker Lendecke <vl@samba.org>
ctdb/config/statd-callout

index e276d6cee315a6640b970038453608896acc79aa..d1e49991f75b85c3fdec9d0166e1f6739c7d7a76 100755 (executable)
@@ -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