Skip to content

Commit

Permalink
fix: Log samba to stdout (#50)
Browse files Browse the repository at this point in the history
  • Loading branch information
kroese authored Mar 26, 2024
1 parent fa106aa commit 9f7667c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
2 changes: 2 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ services:
windows:
container_name: windows
image: dockurr/windows-arm
environment:
VERSION: "win11"
devices:
- /dev/kvm
cap_add:
Expand Down
2 changes: 2 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ services:
windows:
container_name: windows
image: dockurr/windows-arm
environment:
VERSION: "win11"
devices:
- /dev/kvm
cap_add:
Expand Down
8 changes: 5 additions & 3 deletions src/samba.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ SAMBA="/etc/samba/smb.conf"
echo " security = user"
echo " guest account = nobody"
echo " map to guest = Bad User"
echo " server min protocol = SMB2"
echo " server min protocol = NT1"
echo ""
echo " # disable printing services"
echo " load printers = no"
Expand All @@ -41,7 +41,7 @@ SAMBA="/etc/samba/smb.conf"
echo " force group = root"
} > "$SAMBA"

{ echo "--------------------------------------------------------"
{ echo "--------------------------------------------------------"
echo " $APP for Docker v$(</run/version)..."
echo " For support visit $SUPPORT"
echo "--------------------------------------------------------"
Expand All @@ -61,7 +61,9 @@ SAMBA="/etc/samba/smb.conf"
echo ""
} | unix2dos > "$SHARE/readme.txt"

smbd -D
! smbd && smbd --debug-stdout

# Enable Web Service Discovery
wsdd -i dockerbridge -p -n "host.lan" &

return 0

0 comments on commit 9f7667c

Please sign in to comment.