paperless-ngx/docker/paperless_cmd.sh
2022-07-15 11:00:46 -04:00

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