mirror of
https://github.com/nextcloud/vm.git
synced 2025-10-26 11:27:32 +00:00
smbserver - enhance mountpoint scan (#1748)
Signed-off-by: szaimen <szaimen@e.mail.de>
This commit is contained in:
parent
ec112efdbf
commit
3affe1fbcf
@ -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[*]}" ]
|
||||
|
||||
Loading…
Reference in New Issue
Block a user