restricted-manager 0.23 postinst script fails if group admin already exists
Bug #122892 reported by
Roland Dreier
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
restricted-manager (Ubuntu) |
Fix Released
|
Undecided
|
Martin Pitt |
Bug Description
Binary package hint: restricted-manager
The restricted-manager 0.23 package has the following in its postinst script:
addgroup --system --quiet admin
however if the group admin already exists, then that command fails with return code 1 and the whole postinst script dies (at least during my feisty -> gutsy upgrade), which means that upgrading restricted-manager fails.
Probably the postinst script should do something like this instead:
getent group admin > /dev/null 2>&1 || addgroup --system --quiet admin
Related branches
To post a comment you must log in.
This same bug happens to me too.