add support for new RO mode
This commit is contained in:
parent
9824f61bc1
commit
6ae576f4d3
@ -5,13 +5,15 @@
|
|||||||
PUID=${PUID:-911}
|
PUID=${PUID:-911}
|
||||||
PGID=${PGID:-911}
|
PGID=${PGID:-911}
|
||||||
|
|
||||||
groupmod -o -g "$PGID" abc
|
if [[ -z ${LSIO_READ_ONLY_FS} ]] && [[ -z ${LSIO_NON_ROOT_USER} ]]; then
|
||||||
mkdir /dummy
|
groupmod -o -g "$PGID" abc
|
||||||
usermod -d /dummy abc
|
mkdir /dummy
|
||||||
usermod -o -u "$PUID" abc
|
usermod -d /dummy abc
|
||||||
usermod -d /config abc
|
usermod -o -u "$PUID" abc
|
||||||
rmdir /dummy
|
usermod -d /config abc
|
||||||
|
rmdir /dummy
|
||||||
|
|
||||||
lsiown abc:abc /app
|
lsiown abc:abc /app
|
||||||
lsiown abc:abc /config
|
lsiown abc:abc /config
|
||||||
lsiown abc:abc /defaults
|
lsiown abc:abc /defaults
|
||||||
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user