]> gitweb.fluxo.info Git - kvm-manager.git/commitdiff
add user to kvm group.
authorJamie McClelland <jm@mayfirst.org>
Fri, 9 Oct 2009 02:06:57 +0000 (22:06 -0400)
committerJamie McClelland <jm@mayfirst.org>
Fri, 9 Oct 2009 02:06:57 +0000 (22:06 -0400)
kvm-creator

index 59eb7eb5039c1ff5c502addeabb853159ee33cc2..c19830b9bca6bb072132551e63ba54353dbd97fc 100755 (executable)
@@ -49,6 +49,7 @@ create() {
                [ -z "$NAME" ] && die "Please pass the name of the virtual server to create"
                [ -z "$VG" ] && die "Please pass the name of the volume group to use"
     adduser "$NAME" --disabled-password --gecos "$NAME KVM user,,,"
+               addgroup "$NAME" kvm
                for dir in .ssh vms "vms/$NAME"; do
                        [ ! -d "/home/$NAME/$dir" ] && mkdir "/home/$NAME/$dir"
                done