feat: Surpress errors when setting permissions

This commit is contained in:
Kroese 2025-09-23 16:34:03 +02:00 committed by GitHub
parent 3d484bd623
commit 43fe6c9113
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -112,9 +112,9 @@ for dir in "${dirs[@]}"; do
done
# Try to fix Samba permissions
[ -d /run/samba/msg.lock ] && { chmod -R 0755 /run/samba/msg.lock } 2>/dev/null || :
[ -d /var/log/samba/cores ] && { chmod -R 0700 /var/log/samba/cores } 2>/dev/null || :
[ -d /var/cache/samba/msg.lock ] && { chmod -R 0755 /var/cache/samba/msg.lock } 2>/dev/null || :
[ -d /run/samba/msg.lock ] && chmod -R 0755 /run/samba/msg.lock 2>/dev/null || :
[ -d /var/log/samba/cores ] && chmod -R 0700 /var/log/samba/cores 2>/dev/null || :
[ -d /var/cache/samba/msg.lock ] && chmod -R 0755 /var/cache/samba/msg.lock 2>/dev/null || :
if ! smbd; then
error "Samba daemon failed to start!"