aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xkvm-creator4
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")