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

10 lines
173 B
Plaintext
Executable File

#!/usr/bin/with-contenv bash
cd /pagermaid/workdir
if [[ $RUN_AS_ROOT != true ]]; then
exec s6-setuidgid pagermaid python -m pagermaid
else
python -m pagermaid
fi