samba.sh fix workgroup function name derp
This commit is contained in:
parent
ff18817931
commit
753d2e6b20
2
samba.sh
2
samba.sh
@ -86,7 +86,7 @@ user() { local name="${1}" passwd="${2}"
|
||||
# Arguments:
|
||||
# workgroup) the name to set
|
||||
# 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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user