samba.sh make the share path if it doesn't exist
This commit is contained in:
parent
f3ba3cf25f
commit
63f7ab3605
1
samba.sh
1
samba.sh
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user