We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 87379f4 + 155cbf4 commit c8aad2dCopy full SHA for c8aad2d
root/etc/s6-overlay/s6-rc.d/init-adduser/run
@@ -1,7 +1,7 @@
1
#!/usr/bin/with-contenv bash
2
# shellcheck shell=bash
3
4
-if [[ ! -f "/usermod.done" ]] && [[ -n "${USER_NAME}" ]] && [[ "${USER_NAME}" != "abc" ]] && grep -q "^${USER_NAME}" /etc/passwd; then
+if [[ ! -f "/usermod.done" ]] && [[ -n "${USER_NAME}" ]] && [[ "${USER_NAME}" != "abc" ]] && grep -q "^${USER_NAME}:" /etc/passwd; then
5
echo "*** USER_NAME cannot be set to an user that already exists in /etc/passwd. Halting init. ***"
6
sleep infinity
7
else
0 commit comments