diff options
author | Daniel Kahn Gillmor <dkg@fifthhorseman.net> | 2009-11-15 18:30:19 -0500 |
---|---|---|
committer | Daniel Kahn Gillmor <dkg@fifthhorseman.net> | 2009-11-15 18:30:19 -0500 |
commit | 16788db4f74db2fd84e5e2b6a16c2e2d4d53cbb3 (patch) | |
tree | 83145e9bec333573a08e91a062da5f08223e94f2 | |
parent | ed32c7c7b9a66f8be8db819c7bb7f5a9062a7046 (diff) | |
download | kvm-manager-16788db4f74db2fd84e5e2b6a16c2e2d4d53cbb3.tar.gz kvm-manager-16788db4f74db2fd84e5e2b6a16c2e2d4d53cbb3.tar.bz2 |
fixing create()
-rwxr-xr-x | kvm-creator | 4 |
1 files changed, 2 insertions, 2 deletions
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") |