mirror of
https://github.com/linuxserver/docker-openssh-server.git
synced 2026-02-20 04:33:38 +08:00
Merge 155cbf4efdf60fed7b2af52b064409156fcf3c44 into e975413bd3f64f671e284eff874bc436a54926e0
This commit is contained in:
commit
2a0a021ad4
@ -1,7 +1,7 @@
|
||||
#!/usr/bin/with-contenv bash
|
||||
# shellcheck shell=bash
|
||||
|
||||
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
|
||||
echo "*** USER_NAME cannot be set to an user that already exists in /etc/passwd. Halting init. ***"
|
||||
sleep infinity
|
||||
else
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user