diff --git a/scripts/docker-entrypoint.sh b/scripts/docker-entrypoint.sh index 8e6b819e0..14f431b64 100644 --- a/scripts/docker-entrypoint.sh +++ b/scripts/docker-entrypoint.sh @@ -100,8 +100,9 @@ if [[ "$1" != "/"* ]]; then fi if [[ "$1" = "gunicorn" ]]; then + shift cd /usr/src/paperless/src/ && \ - exec sudo -HEu paperless /usr/bin/gunicorn -c /usr/src/paperless/gunicorn.conf paperless.wsgi + exec sudo -HEu paperless /usr/bin/gunicorn -c /usr/src/paperless/gunicorn.conf "$@" paperless.wsgi else exec sudo -HEu paperless "/usr/src/paperless/src/manage.py" "$@" fi