mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2026-01-24 22:39:02 -06:00
13 lines
309 B
Plaintext
Executable File
13 lines
309 B
Plaintext
Executable File
#!/command/with-contenv /usr/bin/bash
|
|
# shellcheck shell=bash
|
|
|
|
set -e
|
|
|
|
cd "${PAPERLESS_SRC_DIR}"
|
|
|
|
if [[ -n "${USER_IS_NON_ROOT}" ]]; then
|
|
python3 manage.py document_create_classifier "$@"
|
|
elif [[ $(id -un) == "paperless" ]]; then
|
|
s6-setuidgid paperless python3 manage.py document_create_classifier "$@"
|
|
fi
|