From f9f7e8beaedb51765ec5b52fcf6317b0ca88ed03 Mon Sep 17 00:00:00 2001 From: Thorsten Spille Date: Sun, 20 Mar 2022 18:20:20 +0100 Subject: [PATCH] Update setup-nasbeery --- setup-nasbeery | 7 +++++++ 1 file changed, 7 insertions(+) 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