24 lines
436 B
Bash
24 lines
436 B
Bash
#!/bin/sh
|
|
apk add samba
|
|
|
|
mkdir -p /mnt/shared
|
|
chmod 0777 /mnt/shared
|
|
|
|
cat << EOF > /etc/samba/smb.conf
|
|
[global]
|
|
workgroup = GOOFJES
|
|
server string = Goofjes Samba
|
|
server role = standalone server
|
|
|
|
[shared]
|
|
path = /mnt/shared
|
|
follow symlinks = yes
|
|
wide links = yes
|
|
browseable = yes
|
|
writable = yes
|
|
EOF
|
|
|
|
rc-update add samba
|
|
rc-service samba start
|
|
|
|
echo "Use smbpasswd -a <username> to add users to SAMBA." |