paperless-ngx/docker/paperless_cmd.sh
2022-08-03 13:26:04 -07:00

16 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[@]}"