diff --git a/docker/docker-entrypoint.sh b/docker/docker-entrypoint.sh index e2338842b..4832675ab 100644 --- a/docker/docker-entrypoint.sh +++ b/docker/docker-entrypoint.sh @@ -114,13 +114,13 @@ install_languages() { done } -initialize - # Install additional languages if specified if [[ ! -z "$PAPERLESS_OCR_LANGUAGES" ]]; then install_languages "$PAPERLESS_OCR_LANGUAGES" fi +initialize + if [[ "$1" != "/"* ]]; then exec sudo -HEu paperless python3 manage.py "$@" else