mirror of
https://github.com/dockur/windows.git
synced 2025-10-27 19:35:49 +00:00
Update samba.sh
This commit is contained in:
parent
d541c77a2d
commit
5ac1fe2bca
1 changed files with 22 additions and 2 deletions
24
src/samba.sh
24
src/samba.sh
|
|
@ -16,7 +16,7 @@ chmod -R 777 "$SHARE"
|
||||||
echo " security = user"
|
echo " security = user"
|
||||||
echo " guest account = nobody"
|
echo " guest account = nobody"
|
||||||
echo " map to guest = Bad User"
|
echo " map to guest = Bad User"
|
||||||
echo " #server min protocol = SMB2"
|
echo " server min protocol = SMB2"
|
||||||
echo ""
|
echo ""
|
||||||
echo " # disable printing services"
|
echo " # disable printing services"
|
||||||
echo " load printers = no"
|
echo " load printers = no"
|
||||||
|
|
@ -24,7 +24,7 @@ chmod -R 777 "$SHARE"
|
||||||
echo " printcap name = /dev/null"
|
echo " printcap name = /dev/null"
|
||||||
echo " disable spoolss = yes"
|
echo " disable spoolss = yes"
|
||||||
echo ""
|
echo ""
|
||||||
echo "[Shared]"
|
echo "[Data]"
|
||||||
echo " path = $SHARE"
|
echo " path = $SHARE"
|
||||||
echo " comment = Shared"
|
echo " comment = Shared"
|
||||||
echo " writable = yes"
|
echo " writable = yes"
|
||||||
|
|
@ -34,6 +34,26 @@ chmod -R 777 "$SHARE"
|
||||||
echo " force group = root"
|
echo " force group = root"
|
||||||
} > "/etc/samba/smb.conf"
|
} > "/etc/samba/smb.conf"
|
||||||
|
|
||||||
|
{ echo "------------------------------------------------"
|
||||||
|
echo "$APP for Docker v$(</run/version)..."
|
||||||
|
echo "For support visit $SUPPORT"
|
||||||
|
echo "------------------------------------------------"
|
||||||
|
echo ""
|
||||||
|
echo "Using this folder you can share files with the host machine."
|
||||||
|
echo ""
|
||||||
|
echo "To change the storage location, include the following bind mount in your compose file:"
|
||||||
|
echo ""
|
||||||
|
echo " volumes:"
|
||||||
|
echo " - /home/user/example:/storage/shared"
|
||||||
|
echo ""
|
||||||
|
echo "Or in your run command:"
|
||||||
|
echo ""
|
||||||
|
echo " -v \"/home/user/example:/storage/shared\""
|
||||||
|
echo ""
|
||||||
|
echo "Replace the example path /home/user/example with the desired storage folder."
|
||||||
|
echo ""
|
||||||
|
} > "$SHARE/readme.txt"
|
||||||
|
|
||||||
smbd -D
|
smbd -D
|
||||||
wsdd -i dockerbridge -p -n "host.local" &
|
wsdd -i dockerbridge -p -n "host.local" &
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue