From 16788db4f74db2fd84e5e2b6a16c2e2d4d53cbb3 Mon Sep 17 00:00:00 2001 From: Daniel Kahn Gillmor Date: Sun, 15 Nov 2009 18:30:19 -0500 Subject: fixing create() --- kvm-creator | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'kvm-creator') diff --git a/kvm-creator b/kvm-creator index 8d083ec..17e3dea 100755 --- a/kvm-creator +++ b/kvm-creator @@ -103,10 +103,10 @@ create() { # is this really the right thing to do? cp /root/.ssh/authorized_keys "$USERHOMEDIR/.ssh/" fi - USERGID="$(getent passwd "$OWNER")" + USERGID="$(getent passwd "$NAME")" USERGID="$(cut -f4 -d: <<<$USERGID)" USERGROUP="$(getent group "$USERGID")" - USERGROUP=${USERGROUP%%:*} + USERGROUP="${USERGROUP%%:*}" udevrule "$VG" "$NAME" "$USERGROUP" > $(udevrulename "$NAME") -- cgit v1.2.3