PagerMaid-Modify/s6/etc/cont-init.d/10-adduser
nevinen 60292725e0
👷 Docker supports data persistence, root permissions (#73)
👷 Docker 支持数据持久化、Root 权限 (#73)
2021-05-07 23:18:06 +08:00

9 lines
186 B
Plaintext
Executable File

#!/usr/bin/with-contenv bash
if [[ $RUN_AS_ROOT != true ]]; then
PUID=${PUID:-917}
PGID=${PGID:-917}
groupmod -o -g "$PGID" pagermaid
usermod -o -u "$PUID" pagermaid
fi