Merge pull request #258 from linuxserver/master-usermod

This commit is contained in:
Adam 2025-04-09 23:05:59 +01:00 committed by GitHub
commit 2c1f03e3a7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -5,8 +5,13 @@ PUID=${PUID:-911}
PGID=${PGID:-911} PGID=${PGID:-911}
if [[ -z ${LSIO_READ_ONLY_FS} ]] && [[ -z ${LSIO_NON_ROOT_USER} ]]; then if [[ -z ${LSIO_READ_ONLY_FS} ]] && [[ -z ${LSIO_NON_ROOT_USER} ]]; then
groupmod -o -g "$PGID" abc USERHOME=$(grep abc /etc/passwd | cut -d ":" -f6)
usermod -o -u "$PUID" abc usermod -d "/root" abc
groupmod -o -g "${PGID}" abc
usermod -o -u "${PUID}" abc
usermod -d "${USERHOME}" abc
fi fi
if { [[ -z ${LSIO_READ_ONLY_FS} ]] && [[ -z ${LSIO_NON_ROOT_USER} ]]; } || [[ ! ${LSIO_FIRST_PARTY} = "true" ]]; then if { [[ -z ${LSIO_READ_ONLY_FS} ]] && [[ -z ${LSIO_NON_ROOT_USER} ]]; } || [[ ! ${LSIO_FIRST_PARTY} = "true" ]]; then