From: Renaud Fortier Date: Tue, 21 Apr 2020 11:47:01 +0000 (+0000) Subject: ctdb-scripts: Update nfs-ganesha-callout X-Git-Tag: ldb-2.2.0~887 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fdfc480a5637ae363f88ee917037f24b0fd79a2f;p=thirdparty%2Fsamba.git ctdb-scripts: Update nfs-ganesha-callout On debian buster, this variable doesn't exist anymore. Look at this PR as a reference: https://github.com/gluster/storhaug/pull/30 Signed-off-by: Renaud Fortier Reviewed-by: Martin Schwenke Reviewed-by: Andrew Bartlett Autobuild-User(master): Martin Schwenke Autobuild-Date(master): Thu Apr 23 08:07:51 UTC 2020 on sn-devel-184 --- diff --git a/ctdb/doc/examples/nfs-ganesha-callout b/ctdb/doc/examples/nfs-ganesha-callout index f06b300c5b7..7c7b07413ab 100755 --- a/ctdb/doc/examples/nfs-ganesha-callout +++ b/ctdb/doc/examples/nfs-ganesha-callout @@ -297,7 +297,7 @@ nfs_startup () basic_start "nfs" _f="${procfs}/sys/net/ipv4/tcp_tw_recycle" - if [ "$_f" ] ; then + if [ -f "$_f" ] ; then echo 1 >"$_f" fi }