fix: Error logging for Samba daemon

This commit is contained in:
Kroese 2024-06-04 15:57:10 +02:00 committed by GitHub
parent 2b6eebb620
commit 2f1137ebd3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -75,7 +75,10 @@ fi
echo " force group = root"
} > "/etc/samba/smb.conf"
! smbd && smbd --debug-stdout
if ! smbd; then
error "Samba daemon failed to start!"
smbd -i --debug-stdout || true
fi
# Enable Web Service Discovery
wsdd -i "$interface" -p -n "$hostname" &