Use gosu instead of sudo for easier configuration

#879
This commit is contained in:
Christopher Timm
2021-04-26 19:06:30 -05:00
parent 17b9d7eb42
commit 5765893f69
3 changed files with 6 additions and 6 deletions

View File

@@ -34,7 +34,7 @@ initialize() {
chown -R paperless:paperless /tmp/paperless
set -e
sudo -HEu paperless /sbin/docker-prepare.sh
gosu paperless /sbin/docker-prepare.sh
}
install_languages() {
@@ -85,7 +85,7 @@ initialize
if [[ "$1" != "/"* ]]; then
echo Executing management command "$@"
exec sudo -HEu paperless python3 manage.py "$@"
exec gosu paperless python3 manage.py "$@"
else
echo Executing "$@"
exec "$@"