mirror of
https://github.com/dockur/windows.git
synced 2025-10-27 11:25:49 +00:00
Update samba.sh
This commit is contained in:
parent
278d111ca8
commit
e14ba2f5af
1 changed files with 7 additions and 3 deletions
10
src/samba.sh
10
src/samba.sh
|
|
@ -3,6 +3,10 @@ set -Eeuo pipefail
|
|||
|
||||
[[ "$DHCP" == [Yy1]* ]] && return 0
|
||||
|
||||
SHARE="$STORAGE/shared"
|
||||
mkdir -p "$SHARE"
|
||||
chmod -R 777 "$SHARE"
|
||||
|
||||
{ echo "[global]"
|
||||
echo " server string = Dockur"
|
||||
echo " netbios name = dockur"
|
||||
|
|
@ -20,9 +24,9 @@ set -Eeuo pipefail
|
|||
echo " printcap name = /dev/null"
|
||||
echo " disable spoolss = yes"
|
||||
echo ""
|
||||
echo "[Storage]"
|
||||
echo " path = /storage"
|
||||
echo " comment = Storage"
|
||||
echo "[Shared]"
|
||||
echo " path = $SHARE"
|
||||
echo " comment = Shared"
|
||||
echo " writable = yes"
|
||||
echo " guest ok = yes"
|
||||
echo " guest only = yes"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue