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.
1 parent 8e4cd2e commit 7129809Copy full SHA for 7129809
1 file changed
root/etc/s6-overlay/s6-rc.d/init-adduser/run
@@ -1,7 +1,12 @@
1
#!/usr/bin/with-contenv bash
2
# shellcheck shell=bash
3
4
-USER_NAME=${USER_NAME:-linuxserver.io}
+if 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
8
+ USER_NAME=${USER_NAME:-linuxserver.io}
9
+fi
10
11
PUID=${PUID:-911}
12
PGID=${PGID:-911}
0 commit comments