Skip to content

Commit

Permalink
Disable creation of Thumbs.db (#51)
Browse files Browse the repository at this point in the history
* Disable creation of Thumbs.db

and desktop.ini and a few others

* Add .AppleDouble

* Disable creation of Thumbs.db #51 (tweaked)
  • Loading branch information
fffaraz authored and David Personette committed Mar 30, 2017
1 parent e2065df commit 6db3581
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions samba.sh
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,9 @@ 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 -n "   veto files = /._*/.apdisk/.AppleDouble/.DS_Store/" >>$file
echo -n ".TemporaryItems/.Trashes/desktop.ini/ehthumbs.db/" >>$file
echo "Network Trash Folder/Temporary Items/Thumbs.db/" >>$file
echo " delete veto files = yes" >>$file
[[ ${users:-""} && ! ${users:-""} =~ all ]] &&
echo " valid users = $(tr ',' ' ' <<< $users)" >>$file
Expand Down Expand Up @@ -202,4 +204,4 @@ elif ps -ef | egrep -v grep | grep -q smbd; then
else
[[ ${NMBD:-""} ]] && ionice -c 3 nmbd -D
exec ionice -c 3 smbd -FS </dev/null
fi
fi

0 comments on commit 6db3581

Please sign in to comment.