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[*]}" ]