samba.sh make the share path if it doesn't exist

This commit is contained in:
David Personette 2018-01-26 06:52:44 -05:00
parent f3ba3cf25f
commit 63f7ab3605

View File

@ -110,6 +110,7 @@ share() { local share="$1" path="$2" browsable=${3:-yes} ro=${4:-yes} \
[[ ${comment:-""} && ! ${comment:-""} =~ none ]] && [[ ${comment:-""} && ! ${comment:-""} =~ none ]] &&
echo " comment = $(tr ',' ' ' <<< $comment)" >>$file echo " comment = $(tr ',' ' ' <<< $comment)" >>$file
echo "" >>$file echo "" >>$file
[[ -d $path ]] || mkdir -p $path
} }
### smb: disable SMB2 minimum ### smb: disable SMB2 minimum