support/scripts/mkusers: preserve group members
authorJohan Oudinet <johan.oudinet@gmail.com>
Mon, 3 Sep 2018 13:11:16 +0000 (15:11 +0200)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Wed, 12 Sep 2018 19:22:25 +0000 (21:22 +0200)
commit497f7134fca4b111499b2fd23501d7e048303e7c
treecacf9937bf494a0b17bfe5f17130692ced03c70d
parent04d7572a8533afa684a9ba8fbabcff7aaf85aa1e
support/scripts/mkusers: preserve group members

When the function add_one_group is called on an existing group,
make sure the members of this group are not removed in the process of
deleting then re-adding the group.

Signed-off-by: Johan Oudinet <johan.oudinet@gmail.com>
Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
[Thomas: add curly braces when referencing ${members}, as suggested by
Yann.]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
support/scripts/mkusers