PagerMaid-Pyro/s6/etc/services.d/pagermaid/run

10 lines
196 B
Plaintext
Raw Normal View History

2022-05-25 03:33:32 +00:00
#!/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