mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-07 23:35:22 +01:00
Added support for paperless.conf in /usr/local/etc
This commit is contained in:
parent
41f816a29b
commit
b7f1561217
1 changed files with 2 additions and 0 deletions
|
|
@ -18,6 +18,8 @@ from dotenv import load_dotenv
|
|||
# Tap paperless.conf if it's available
|
||||
if os.path.exists("/etc/paperless.conf"):
|
||||
load_dotenv("/etc/paperless.conf")
|
||||
elif os.path.exists("/usr/local/etc/paperless.conf"):
|
||||
load_dotenv("/usr/local/etc/paperless.conf")
|
||||
|
||||
|
||||
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue