Bye NFS, hello Samba
This commit is contained in:
24
services/samba/install.sh
Normal file
24
services/samba/install.sh
Normal file
@@ -0,0 +1,24 @@
|
||||
#!/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."
|
||||
Reference in New Issue
Block a user