allow rootless (as paperless user)

This commit is contained in:
Aidan Stein 2022-07-03 14:42:36 -04:00
parent ca7a6fe1f1
commit f58c2d0a7b

View File

@ -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() {