smbserver - enhance mountpoint scan (#1748)

Signed-off-by: szaimen <szaimen@e.mail.de>
This commit is contained in:
szaimen 2020-12-31 11:28:45 +01:00 committed by GitHub
parent ec112efdbf
commit 3affe1fbcf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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