samba.sh / README.md try to clarify the share users argument...

This commit is contained in:
David Personette 2015-08-02 08:23:04 -04:00
parent a02e294ae6
commit db6583b997
2 changed files with 3 additions and 1 deletions

View File

@ -36,6 +36,7 @@ OR set local storage:
required arg: "<name>;<comment>;</path>" required arg: "<name>;<comment>;</path>"
<name> is how it's called for clients <name> is how it's called for clients
<path> path to share <path> path to share
NOTE: for the default values, just leave blank
[browseable] default:'yes' or 'no' [browseable] default:'yes' or 'no'
[readonly] default:'yes' or 'no' [readonly] default:'yes' or 'no'
[guest] allowed default:'yes' or 'no' [guest] allowed default:'yes' or 'no'

View File

@ -46,7 +46,7 @@ share() { local share="$1" path="$2" browse=${3:-yes} ro=${4:-yes}\
echo " browseable = $browse" >> $file echo " browseable = $browse" >> $file
echo " read only = $ro" >> $file echo " read only = $ro" >> $file
echo " guest ok = $guest" >> $file echo " guest ok = $guest" >> $file
[[ ${users:-""} ]] && [[ ${users:-""} && ! ${users:-""} =~ all ]] &&
echo " valid users = $(tr ',' ' ' <<< $users)" >> $file echo " valid users = $(tr ',' ' ' <<< $users)" >> $file
echo -e "" >> $file echo -e "" >> $file
} }
@ -88,6 +88,7 @@ Options (fields in '[]' are optional, '<>' are required):
required arg: \"<name>;<comment>;</path>\" required arg: \"<name>;<comment>;</path>\"
<name> is how it's called for clients <name> is how it's called for clients
<path> path to share <path> path to share
NOTE: for the default value, just leave blank
[browseable] default:'yes' or 'no' [browseable] default:'yes' or 'no'
[readonly] default:'yes' or 'no' [readonly] default:'yes' or 'no'
[guest] allowed default:'yes' or 'no' [guest] allowed default:'yes' or 'no'