Update samba.sh

This commit is contained in:
Kroese 2024-05-05 18:52:32 +02:00 committed by GitHub
parent 1f3cb4aff6
commit 7f47f7bce8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -16,6 +16,10 @@ fi
share="/shared" share="/shared"
if [ ! -d "$share" ] && [ -d "$STORAGE/shared" ]; then
share="$STORAGE/shared"
fi
mkdir -p "$share" mkdir -p "$share"
[ -z "$(ls -A "$share")" ] && chmod 777 "$share" [ -z "$(ls -A "$share")" ] && chmod 777 "$share"