Use gosu instead of sudo for easier configuration

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

No files matched your search

+1 -1
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 "$@"