mirror of
				https://github.com/bashclub/zamba-lxc-toolbox.git
				synced 2025-11-04 08:02:28 +01:00 
			
		
		
		
	Fixed directory creation
This commit is contained in:
		@@ -26,7 +26,7 @@ smbpasswd -x $USER
 | 
				
			|||||||
cat << EOF >> /etc/samba/smb.conf
 | 
					cat << EOF >> /etc/samba/smb.conf
 | 
				
			||||||
[share]
 | 
					[share]
 | 
				
			||||||
    comment = Main Share
 | 
					    comment = Main Share
 | 
				
			||||||
    path = /tank/share
 | 
					    path = /$LXC_SHAREFS_MOUNTPOINT/$ZMB_SHARE
 | 
				
			||||||
    read only = No
 | 
					    read only = No
 | 
				
			||||||
    vfs objects = shadow_copy2
 | 
					    vfs objects = shadow_copy2
 | 
				
			||||||
    shadow: snapdir = .zfs/snapshot
 | 
					    shadow: snapdir = .zfs/snapshot
 | 
				
			||||||
@@ -36,7 +36,8 @@ cat << EOF >> /etc/samba/smb.conf
 | 
				
			|||||||
    shadow: delimiter = -20
 | 
					    shadow: delimiter = -20
 | 
				
			||||||
EOF
 | 
					EOF
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					mkdir -p /$LXC_SHAREFS_MOUNTPOINT/$ZMB_SHARE
 | 
				
			||||||
chmod -R 770 /$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 
 | 
					systemctl restart smbd nmbd 
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user