From d7c257188410ecb5b24d122baae204ca4a7ce1a3 Mon Sep 17 00:00:00 2001 From: Thorsten Spille Date: Tue, 13 Apr 2021 19:54:46 +0200 Subject: [PATCH] Fixed directory creation --- zmb-standalone.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/zmb-standalone.sh b/zmb-standalone.sh index cd79817..f1db336 100644 --- a/zmb-standalone.sh +++ b/zmb-standalone.sh @@ -26,7 +26,7 @@ smbpasswd -x $USER cat << EOF >> /etc/samba/smb.conf [share] comment = Main Share - path = /tank/share + path = /$LXC_SHAREFS_MOUNTPOINT/$ZMB_SHARE read only = No vfs objects = shadow_copy2 shadow: snapdir = .zfs/snapshot @@ -36,7 +36,8 @@ cat << EOF >> /etc/samba/smb.conf shadow: delimiter = -20 EOF +mkdir -p /$LXC_SHAREFS_MOUNTPOINT/$ZMB_SHARE chmod -R 770 /$LXC_SHAREFS_MOUNTPOINT/$ZMB_SHARE -chown -R '$ZMB_ADMIN_USER':root /$LXC_SHAREFS_MOUNTPOINT/$ZMB_SHARE +chown -R '$USER':root /$LXC_SHAREFS_MOUNTPOINT/$ZMB_SHARE systemctl restart smbd nmbd