mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-07 15:25:41 +01:00
15 lines
265 B
Bash
Executable file
15 lines
265 B
Bash
Executable file
#!/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[@]}"
|