]> git.ipfire.org Git - thirdparty/lxc.git/commit
lxc-ubuntu.in: fix up the logic adding group for bound users
authorSerge Hallyn <serge.hallyn@ubuntu.com>
Tue, 31 Jul 2012 14:03:30 +0000 (16:03 +0200)
committerDaniel Lezcano <daniel.lezcano@free.fr>
Tue, 31 Jul 2012 14:03:30 +0000 (16:03 +0200)
commit9db1aba4bc2201d886c159d7821c03a8cf25c389
tree96492ea01bfc8e828d718012d650b2ec00ef36f2
parent0c54752318ae11763de5551bee0d6aea92fa5d82
lxc-ubuntu.in: fix up the logic adding group for bound users

 1. 'getent group $user' assumes user's group is named $user.
 2. if 'getent group' returns error, just ignore the group in container
 3. (misc) while it happens to all work out fine anyway, don't do
    getent passwd $bindhome if $bindhome isn't defined.  (it will
    successfully return all password entries)

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
templates/lxc-ubuntu.in