Files
paperless-ngx/docker/rootfs/usr/local/bin/document_fuzzy_match

13 lines
297 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_fuzzy_match "$@"
elif [[ $(id -un) == "paperless" ]]; then
s6-setuidgid paperless python3 manage.py document_fuzzy_match "$@"
fi