From e2065dfec1c0fd3df291691f0a27224d70d21e8b Mon Sep 17 00:00:00 2001 From: Faraz Fallahi Date: Mon, 27 Mar 2017 10:50:11 -0500 Subject: [PATCH] Disable creation of .DS_Store files (#50) --- samba.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/samba.sh b/samba.sh index befff60..1194d8f 100755 --- a/samba.sh +++ b/samba.sh @@ -76,6 +76,8 @@ share() { local share="$1" path="$2" browsable=${3:-yes} ro=${4:-yes} \ echo " browsable = $browsable" >>$file echo " read only = $ro" >>$file echo " guest ok = $guest" >>$file + echo " veto files = /._*/.DS_Store/" >>$file + echo " delete veto files = yes" >>$file [[ ${users:-""} && ! ${users:-""} =~ all ]] && echo " valid users = $(tr ',' ' ' <<< $users)" >>$file [[ ${admins:-""} && ! ${admins:-""} =~ none ]] &&