diff --git a/docker/docker-entrypoint.sh b/docker/docker-entrypoint.sh index c1e7588e1..b68eeb409 100755 --- a/docker/docker-entrypoint.sh +++ b/docker/docker-entrypoint.sh @@ -95,7 +95,11 @@ initialize() { done set -e - gosu paperless /sbin/docker-prepare.sh + if [ $(id -u) == $(id -u paperless) ]; then + /sbin/docker-prepare.sh + else + gosu paperless /sbin/docker-prepare.sh + fi } install_languages() {