From 63f7ab3605eb0b7dce7d3a2342f0a6e500686e4a Mon Sep 17 00:00:00 2001 From: David Personette Date: Fri, 26 Jan 2018 06:52:44 -0500 Subject: [PATCH] samba.sh make the share path if it doesn't exist --- samba.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/samba.sh b/samba.sh index 9d8d103..5cbc1e3 100755 --- a/samba.sh +++ b/samba.sh @@ -110,6 +110,7 @@ share() { local share="$1" path="$2" browsable=${3:-yes} ro=${4:-yes} \ [[ ${comment:-""} && ! ${comment:-""} =~ none ]] && echo " comment = $(tr ',' ' ' <<< $comment)" >>$file echo "" >>$file + [[ -d $path ]] || mkdir -p $path } ### smb: disable SMB2 minimum