Compare commits
2 Commits
1f02156318
...
bff71d0feb
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
bff71d0feb | ||
|
|
10ce8a1453 |
@ -6,12 +6,10 @@ installDockerRootlessUser()
|
|||||||
if id "$CFG_DOCKER_INSTALL_USER" &>/dev/null; then
|
if id "$CFG_DOCKER_INSTALL_USER" &>/dev/null; then
|
||||||
isSuccessful "User $CFG_DOCKER_INSTALL_USER already exists."
|
isSuccessful "User $CFG_DOCKER_INSTALL_USER already exists."
|
||||||
else
|
else
|
||||||
# Create the rootless docker user. The login name (last arg) was
|
# Create the rootless docker user. -m makes its home; with SUB_UID/GID
|
||||||
# missing, so useradd failed silently — masked by local result; result=$(...)
|
# configured in login.defs, useradd also assigns its subordinate uid/gid
|
||||||
# — and the user never existed, breaking the whole rootless setup.
|
# ranges (needed for rootless). Run unmasked so checkSuccess sees real
|
||||||
# -m makes its home; with SUB_UID/GID configured in login.defs,
|
# failures.
|
||||||
# useradd also assigns its subordinate uid/gid ranges (needed for
|
|
||||||
# rootless). Run unmasked so checkSuccess sees real failures.
|
|
||||||
runSystem useradd -m -s /bin/bash -d "/home/$CFG_DOCKER_INSTALL_USER" "$CFG_DOCKER_INSTALL_USER"
|
runSystem useradd -m -s /bin/bash -d "/home/$CFG_DOCKER_INSTALL_USER" "$CFG_DOCKER_INSTALL_USER"
|
||||||
checkSuccess "Creating $CFG_DOCKER_INSTALL_USER User."
|
checkSuccess "Creating $CFG_DOCKER_INSTALL_USER User."
|
||||||
fi
|
fi
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user