samba.sh fix workgroup function name derp

This commit is contained in:
David Personette 2016-02-12 21:30:58 -05:00
parent ff18817931
commit 753d2e6b20

View File

@ -86,7 +86,7 @@ user() { local name="${1}" passwd="${2}"
# Arguments: # Arguments:
# workgroup) the name to set # workgroup) the name to set
# Return: configure the correct workgroup # Return: configure the correct workgroup
user() { local workgroup="${1}" file=/etc/samba/smb.conf workgroup() { local workgroup="${1}" file=/etc/samba/smb.conf
sed -i 's/^\( *workgroup = \).*/\1'"$workgroup"'/' $file sed -i 's/^\( *workgroup = \).*/\1'"$workgroup"'/' $file
} }