From 3affe1fbcf11ab96ddb632e57caaa4e371f677fb Mon Sep 17 00:00:00 2001 From: szaimen Date: Thu, 31 Dec 2020 11:28:45 +0100 Subject: [PATCH] smbserver - enhance mountpoint scan (#1748) Signed-off-by: szaimen --- not-supported/smbserver.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/not-supported/smbserver.sh b/not-supported/smbserver.sh index 361f702b..d98be0ac 100644 --- a/not-supported/smbserver.sh +++ b/not-supported/smbserver.sh @@ -55,7 +55,11 @@ do if mountpoint -q "$directory" && [ "$(stat -c '%a' "$directory")" = "770" ] \ && [ "$(stat -c '%U' "$directory")" = "www-data" ] && [ "$(stat -c '%G' "$directory")" = "www-data" ] then - MOUNTS+=("$directory/") + if grep -q " \"$directory\"$" "$SCRIPTS/veracrypt-automount.sh" &>/dev/null \ +|| grep -q "^/media/bitlocker/1/dislocker-file $directory " /etc/fstab + then + MOUNTS+=("$directory/") + fi fi done if [ -z "${MOUNTS[*]}" ]