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