diff --git a/setup-nasbeery b/setup-nasbeery index 03985d1..214ce1d 100644 --- a/setup-nasbeery +++ b/setup-nasbeery @@ -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