linuxserver-mods/skip-chown/root/etc/s6-overlay/s6-rc.d/init-adduser/run
Michel Roux 6ae576f4d3
All checks were successful
dl / skip-chown (push) Successful in 33s
dl / wireguard-ipv6 (push) Successful in 25s
add support for new RO mode
2024-08-14 20:16:11 +00:00

20 lines
510 B
Plaintext
Executable File

#!/usr/bin/with-contenv bash
# shellcheck shell=bash
# https://github.com/linuxserver/docker-baseimage-alpine/blob/master/root/etc/s6-overlay/s6-rc.d/init-adduser/run
PUID=${PUID:-911}
PGID=${PGID:-911}
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
fi