PagerMaid-Modify/s6/etc/services.d/pagermaid/run
nevinen a7fa55e01b
👷 Docker redis supports data permanence, fix #74 (#75)
👷 Docker redis 支持数据永久化, fix #74 (#75)
2021-05-08 21:52:36 +08:00

10 lines
196 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
exec s6-setuidgid root python -m pagermaid
fi