Update samba.sh

This commit is contained in:
Kroese 2024-05-05 17:30:21 +02:00 committed by GitHub
parent 237096940a
commit 86117ae3d9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -14,8 +14,8 @@ if [[ "$DHCP" == [Yy1]* ]]; then
interface="$VM_NET_DEV"
fi
share="$STORAGE/shared"
[ ! -d "$share" ] && share="/shared"
share="/shared"
[ ! -d "$share" ] && share="$STORAGE/shared"
mkdir -p "$share"
[ -z "$(ls -A "$share")" ] && chmod 777 "$share"