Skip to content

Commit 348399e

Browse files
committed
Allow abc as USER_NAME
1 parent 69cf34d commit 348399e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • root/etc/s6-overlay/s6-rc.d/init-adduser

root/etc/s6-overlay/s6-rc.d/init-adduser/run

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/with-contenv bash
22
# shellcheck shell=bash
33

4-
if [[ -n "$USER_NAME" ]] && grep -q "^${USER_NAME}" /etc/passwd; then
4+
if [[ -n "$USER_NAME" ]] && [[ "$USER_NAME" != "abc" ]] && grep -q "^${USER_NAME}" /etc/passwd; then
55
echo "*** USER_NAME cannot be set to an user that already exists in /etc/passwd. Halting init. ***"
66
sleep infinity
77
else

0 commit comments

Comments
 (0)