mirror of
https://github.com/novatiq/packages.git
synced 2026-04-29 23:18:42 +01:00
samba4: update to 4.9.7
* update to 4.9.7 * add write_list, read_list UCI support Signed-off-by: Andy Walsh <andy.walsh44+github@gmail.com>
This commit is contained in:
@@ -82,6 +82,8 @@ smb_add_share() {
|
||||
local timemachine
|
||||
local timemachine_maxsize
|
||||
local force_root
|
||||
local write_list
|
||||
local read_list
|
||||
|
||||
config_get name $1 name
|
||||
config_get path $1 path
|
||||
@@ -97,6 +99,8 @@ smb_add_share() {
|
||||
config_get_bool timemachine $1 timemachine 0
|
||||
config_get timemachine_maxsize $1 timemachine_maxsize
|
||||
config_get_bool force_root $1 force_root 0
|
||||
config_get write_list $1 write_list
|
||||
config_get read_list $1 read_list
|
||||
|
||||
[ -z "$name" -o -z "$path" ] && return
|
||||
|
||||
@@ -117,7 +121,10 @@ smb_add_share() {
|
||||
[ -n "$guest_ok" ] && echo -e "\tguest ok = $guest_ok" >> /var/etc/smb.conf
|
||||
[ -n "$guest_only" ] && echo -e "\tguest only = $guest_only" >> /var/etc/smb.conf
|
||||
[ -n "$inherit_owner" ] && echo -e "\tinherit owner = $inherit_owner" >> /var/etc/smb.conf
|
||||
|
||||
|
||||
[ -n "$write_list" ] && echo -e "\twrite list = $write_list" >> /var/etc/smb.conf
|
||||
[ -n "$read_list" ] && echo -e "\tread list = $read_list" >> /var/etc/smb.conf
|
||||
|
||||
if [ "$MACOS" -eq 1 ]; then
|
||||
vfs_objects="catia fruit streams_xattr $vfs_objects"
|
||||
echo -e "\tfruit:encoding = native" >> /var/etc/smb.conf
|
||||
|
||||
Reference in New Issue
Block a user