60292725e0
👷 Docker 支持数据持久化、Root 权限 (#73)
9 lines
186 B
Plaintext
Executable File
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
|