mirror of
https://github.com/dockur/windows.git
synced 2025-10-27 03:15:49 +00:00
feat: Surpress errors when setting permissions
This commit is contained in:
parent
5425783f5c
commit
3d484bd623
1 changed files with 4 additions and 4 deletions
|
|
@ -111,10 +111,10 @@ for dir in "${dirs[@]}"; do
|
|||
addShare "$dir" "$dir_name" "Shared $dir_name" || error "Failed to create shared folder for $dir!"
|
||||
done
|
||||
|
||||
# Fix Samba permissions
|
||||
[ -d /run/samba/msg.lock ] && chmod -R 0755 /run/samba/msg.lock
|
||||
[ -d /var/log/samba/cores ] && chmod -R 0700 /var/log/samba/cores
|
||||
[ -d /var/cache/samba/msg.lock ] && chmod -R 0755 /var/cache/samba/msg.lock
|
||||
# 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 || :
|
||||
|
||||
if ! smbd; then
|
||||
error "Samba daemon failed to start!"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue