diff options
-rwxr-xr-x | ctdb/config/events.d/60.nfs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ctdb/config/events.d/60.nfs b/ctdb/config/events.d/60.nfs index 2b4c158d68..19a9ea81a1 100755 --- a/ctdb/config/events.d/60.nfs +++ b/ctdb/config/events.d/60.nfs @@ -61,9 +61,9 @@ case "$1" in monitor) # Check that directories for shares actually exist. [ "$CTDB_NFS_SKIP_SHARE_CHECK" = "yes" ] || { - exportfs | grep -v '^#' | grep '^/' | - sed -e 's/[[:space:]]\+[^[:space:]]*$//' | - ctdb_check_directories + exportfs -v | grep '^/' | + sed -r -e 's@[[:space:]]+[^[:space:]()]+\([^[:space:]()]+\)$@@' | + ctdb_check_directories } || exit $? update_tickles 2049 |