Update setup-nasbeery

This commit is contained in:
Thorsten Spille 2022-03-20 18:20:20 +01:00 committed by GitHub
parent 47b56bf09a
commit f9f7e8beae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -26,6 +26,7 @@ FORMAT=0
ADDONS=
ZPOOL=tank
SHARE=share
BASE_REPO=https://github.com/thorstenspille/nasbeery
while getopts "hU:P:H:D:FIZ:S:" opt; do
case $opt in
@ -270,6 +271,12 @@ cat << EOF | sudo tee -i /etc/samba/smb.conf
directory mask = 0770
EOF
#### PLUGIN INSTALLATION ####
for addon in $ADDONS; do
wget -O ./$addon $base_repo/raw/main/plugins/$addon
bash ./$addon -Z $ZPOOL
done
echo "Restart samba services"
sudo systemctl enable smbd nmbd wsdd