commit | 6825a0185e42c06626116334ee6c0b395562e4d7 | [log] [tgz] |
---|---|---|
author | Josh Lehan <krellan@google.com> | Thu Mar 17 18:31:39 2022 -0700 |
committer | Josh Lehan <krellan@google.com> | Thu Mar 17 18:31:39 2022 -0700 |
tree | 87eba7986899392a0c7298c3ab2061e2dc7f53e0 | |
parent | abace2cb2802747516619f3ef10ba9727979c1e2 [diff] |
Use well-known passwd constants if user root If the intended user is root, use well-known constants for UID, GID, and home directory, to avoid wrongly using those of the normal user running this script. Using -f flag for groupadd, to avoid erroring out if group name already exists for this user name. Tested: No longer fails with weird groupadd errors if run-unit-test-docker.sh command line contains USER="root" setting. Signed-off-by: Josh Lehan <krellan@google.com> Change-Id: Idc6158386ce96a6e2fa97dd0eb56b928f18e7a35
Build script for CI jobs in Jenkins.