mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-06 06:45:05 +01:00
11 lines
243 B
Text
11 lines
243 B
Text
|
|
#!/command/with-contenv /usr/bin/bash
|
||
|
|
# shellcheck shell=bash
|
||
|
|
|
||
|
|
cd ${PAPERLESS_SRC_DIR}
|
||
|
|
|
||
|
|
if [[ -n "${USER_IS_NON_ROOT}" ]]; then
|
||
|
|
exec python3 manage.py document_consumer
|
||
|
|
else
|
||
|
|
exec s6-setuidgid paperless python3 manage.py document_consumer
|
||
|
|
fi
|