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

@@ -6,7 +6,7 @@ cd /usr/src/paperless/src/
if [[ $(id -u) == 0 ]] ;
then
sudo -HEu paperless python3 manage.py management_command "$@"
gosu paperless python3 manage.py management_command "$@"
elif [[ $(id -un) == "paperless" ]] ;
then
python3 manage.py management_command "$@"