From 6d8895966ca87ea5f156c3bc67c05eed71eaa9be Mon Sep 17 00:00:00 2001 From: David Personette Date: Thu, 21 Dec 2017 10:32:29 -0500 Subject: [PATCH] samba.sh derp2 --- samba.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samba.sh b/samba.sh index b7cf3d2..e9bd1e8 100755 --- a/samba.sh +++ b/samba.sh @@ -51,7 +51,7 @@ global() { local key="${1%%=*}" value="${1#*=}" file=/etc/samba/smb.conf # Return: user(s) added to container import() { local name id file="$1" while read name id; do - grep -q "^$user:" /etc/passwd || adduser -D -H -u "$id" "$name" + grep -q "^$name:" /etc/passwd || adduser -D -H -u "$id" "$name" done < <(cut -d: -f1,2 $file | sed 's/:/ /') pdbedit -i smbpasswd:$file }