add support for new RO mode
All checks were successful
dl / skip-chown (push) Successful in 33s
dl / wireguard-ipv6 (push) Successful in 25s

This commit is contained in:
Michel Roux 2024-08-14 20:16:11 +00:00
parent 9824f61bc1
commit 6ae576f4d3

View File

@ -5,13 +5,15 @@
PUID=${PUID:-911}
PGID=${PGID:-911}
groupmod -o -g "$PGID" abc
mkdir /dummy
usermod -d /dummy abc
usermod -o -u "$PUID" abc
usermod -d /config abc
rmdir /dummy
if [[ -z ${LSIO_READ_ONLY_FS} ]] && [[ -z ${LSIO_NON_ROOT_USER} ]]; then
groupmod -o -g "$PGID" abc
mkdir /dummy
usermod -d /dummy abc
usermod -o -u "$PUID" abc
usermod -d /config abc
rmdir /dummy
lsiown abc:abc /app
lsiown abc:abc /config
lsiown abc:abc /defaults
lsiown abc:abc /app
lsiown abc:abc /config
lsiown abc:abc /defaults
fi