Disable creation of .DS_Store files (#50)
This commit is contained in:
parent
4fdac83403
commit
e2065dfec1
2
samba.sh
2
samba.sh
@ -76,6 +76,8 @@ share() { local share="$1" path="$2" browsable=${3:-yes} ro=${4:-yes} \
|
|||||||
echo " browsable = $browsable" >>$file
|
echo " browsable = $browsable" >>$file
|
||||||
echo " read only = $ro" >>$file
|
echo " read only = $ro" >>$file
|
||||||
echo " guest ok = $guest" >>$file
|
echo " guest ok = $guest" >>$file
|
||||||
|
echo " veto files = /._*/.DS_Store/" >>$file
|
||||||
|
echo " delete veto files = yes" >>$file
|
||||||
[[ ${users:-""} && ! ${users:-""} =~ all ]] &&
|
[[ ${users:-""} && ! ${users:-""} =~ all ]] &&
|
||||||
echo " valid users = $(tr ',' ' ' <<< $users)" >>$file
|
echo " valid users = $(tr ',' ' ' <<< $users)" >>$file
|
||||||
[[ ${admins:-""} && ! ${admins:-""} =~ none ]] &&
|
[[ ${admins:-""} && ! ${admins:-""} =~ none ]] &&
|
||||||
|
Loading…
Reference in New Issue
Block a user