mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-06 06:45:05 +01:00
14 lines
300 B
Text
Executable file
14 lines
300 B
Text
Executable file
#!/command/with-contenv /usr/bin/bash
|
|
# shellcheck shell=bash
|
|
|
|
set -e
|
|
|
|
cd "${PAPERLESS_SRC_DIR}"
|
|
|
|
if [[ $(id -u) == 0 ]]; then
|
|
s6-setuidgid paperless python3 manage.py document_index "$@"
|
|
elif [[ $(id -un) == "paperless" ]]; then
|
|
python3 manage.py document_index "$@"
|
|
else
|
|
echo "Unknown user."
|
|
fi
|