mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-06 06:45:05 +01:00
16 lines
259 B
Bash
16 lines
259 B
Bash
|
|
#!/usr/bin/env bash
|
||
|
|
|
||
|
|
rootless_args=()
|
||
|
|
if [ $(id -u) == $(id -u paperless) ]; then
|
||
|
|
rootless_args=(
|
||
|
|
--user
|
||
|
|
paperless
|
||
|
|
--logfile
|
||
|
|
supervisord.log
|
||
|
|
--pidfile
|
||
|
|
supervisord.pid
|
||
|
|
)
|
||
|
|
fi
|
||
|
|
|
||
|
|
/usr/local/bin/supervisord -c /etc/supervisord.conf ${rootless_args[@]}
|