Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions root/etc/s6-overlay/s6-rc.d/init-adduser/run
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,15 @@
PUID=${PUID:-911}
PGID=${PGID:-911}

groupmod -o -g "$PGID" abc
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)
usermod -d "/root" abc

groupmod -o -g "${PGID}" abc
usermod -o -u "${PUID}" abc

usermod -d "${USERHOME}" abc
fi

cat /etc/s6-overlay/s6-rc.d/init-adduser/branding

Expand Down