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 c852467 + 46c4683 commit e522840Copy full SHA for e522840
root/etc/s6-overlay/s6-rc.d/init-adduser/run
@@ -5,8 +5,13 @@ PUID=${PUID:-911}
5
PGID=${PGID:-911}
6
7
if [[ -z ${LSIO_READ_ONLY_FS} ]] && [[ -z ${LSIO_NON_ROOT_USER} ]]; then
8
- groupmod -o -g "$PGID" abc
9
- usermod -o -u "$PUID" abc
+ USERHOME=$(grep abc /etc/passwd | cut -d ":" -f6)
+ 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
if { [[ -z ${LSIO_READ_ONLY_FS} ]] && [[ -z ${LSIO_NON_ROOT_USER} ]]; } || [[ ! ${LSIO_FIRST_PARTY} = "true" ]]; then
0 commit comments