Compare commits
No commits in common. "67cda1c95512ad797562aac63b2b5426dac95aff" and "8f6f4c65edaf4104c2c659b47f71d82357a11aa9" have entirely different histories.
67cda1c955
...
8f6f4c65ed
@ -6,13 +6,8 @@ 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
|
# If the user doesn't exist, create the user
|
||||||
# missing, so useradd failed silently — masked by local result=$(...)
|
local result=$(sudo useradd -s /bin/bash -d "/home/$CFG_DOCKER_INSTALL_USER")
|
||||||
# — 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.
|
|
||||||
sudo 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."
|
||||||
updateDockerInstallPassword;
|
updateDockerInstallPassword;
|
||||||
fi
|
fi
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user