We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 96d1c62 + 0b9005e commit ad283aeCopy full SHA for ad283ae
root/etc/s6-overlay/s6-rc.d/init-adduser/run
@@ -4,8 +4,15 @@
4
PUID=${PUID:-911}
5
PGID=${PGID:-911}
6
7
-groupmod -o -g "$PGID" abc
8
-usermod -o -u "$PUID" abc
+if [[ -z ${LSIO_READ_ONLY_FS} ]] && [[ -z ${LSIO_NON_ROOT_USER} ]]; then
+ USERHOME=$(grep abc /etc/passwd | cut -d ":" -f6)
9
+ usermod -d "/root" abc
10
+
11
+ groupmod -o -g "${PGID}" abc
12
+ usermod -o -u "${PUID}" abc
13
14
+ usermod -d "${USERHOME}" abc
15
+fi
16
17
cat /etc/s6-overlay/s6-rc.d/init-adduser/branding
18
0 commit comments