From 2675311ab85c6ced10aa25f58e7e9f03edcdd3ab Mon Sep 17 00:00:00 2001 From: David Personette Date: Wed, 20 Dec 2017 06:17:44 -0500 Subject: [PATCH] samba.sh derp --- samba.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samba.sh b/samba.sh index a45dba2..b7cf3d2 100755 --- a/samba.sh +++ b/samba.sh @@ -126,7 +126,7 @@ smb() { local file=/etc/samba/smb.conf # Return: user added to container user() { local name="${1}" passwd="${2}" id="${3:-""}" group="${4:-""}" [[ "$group" ]] && { grep -q "^$group:" /etc/group || addgroup "$group"; } - grep -q "^$user:" /etc/passwd || + grep -q "^$name:" /etc/passwd || adduser -D -H ${group:+-G $group} ${id:+-u $id} "$name" echo -e "$passwd\n$passwd" | smbpasswd -s -a "$name" }