PagerMaid-Pyro/s6/etc/services.d/pagermaid/run
2022-05-25 11:33:32 +08:00

10 lines
196 B
Plaintext

#!/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