Merge lp:~sergiusens/snappy/usersCreate into lp:~snappy-dev/snappy/snappy-moved-to-github
Status: | Merged |
---|---|
Approved by: | Michael Vogt |
Approved revision: | 326 |
Merged at revision: | 326 |
Proposed branch: | lp:~sergiusens/snappy/usersCreate |
Merge into: | lp:~snappy-dev/snappy/snappy-moved-to-github |
Diff against target: |
14 lines (+10/-0) 1 file modified
debian/ubuntu-snappy-cli.postinst (+10/-0) |
To merge this branch: | bzr merge lp:~sergiusens/snappy/usersCreate |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Michael Vogt (community) | Approve | ||
Review via email: mp+255644@code.launchpad.net |
Commit message
Create clickpkg user/group in case it doesn't exist in postinst of ubuntu-snappy-cli
Description of the change
According to https:/
"It should normally not be necessary to cross-check with getent whether an account already exists since adduser --system generally does the right thing. If not, please report a bug against adduser to keep your maintainer scripts simple."
Thus:
sergiusens@
Warning: The home dir /nonexistent you specified can't be accessed: No such file or directory
Adding system user `clickpkg' (UID 116) ...
Adding new group `clickpkg' (GID 126) ...
Adding new user `clickpkg' (UID 116) with group `clickpkg' ...
Not creating home directory `/nonexistent'.
sergiusens@
Warning: The home dir /nonexistent you specified can't be accessed: No such file or directory
The system user `clickpkg' already exists. Exiting.
sergiusens@
0
FTR, I took --home /nonexistent from whoopsie's postinst
Thanks