Update setup-nasbeery
This commit is contained in:
parent
47b56bf09a
commit
f9f7e8beae
@ -26,6 +26,7 @@ FORMAT=0
|
|||||||
ADDONS=
|
ADDONS=
|
||||||
ZPOOL=tank
|
ZPOOL=tank
|
||||||
SHARE=share
|
SHARE=share
|
||||||
|
BASE_REPO=https://github.com/thorstenspille/nasbeery
|
||||||
|
|
||||||
while getopts "hU:P:H:D:FIZ:S:" opt; do
|
while getopts "hU:P:H:D:FIZ:S:" opt; do
|
||||||
case $opt in
|
case $opt in
|
||||||
@ -270,6 +271,12 @@ cat << EOF | sudo tee -i /etc/samba/smb.conf
|
|||||||
directory mask = 0770
|
directory mask = 0770
|
||||||
EOF
|
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"
|
echo "Restart samba services"
|
||||||
sudo systemctl enable smbd nmbd wsdd
|
sudo systemctl enable smbd nmbd wsdd
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user