summaryrefslogtreecommitdiff
path: root/deskutils/py-paperless-ngx/files/patch-src_paperless_settings.py
diff options
context:
space:
mode:
authorMichael Gmelin <grembo@FreeBSD.org>2024-02-18 21:03:51 +0100
committerMichael Gmelin <grembo@FreeBSD.org>2024-02-22 19:33:06 +0100
commit61fe359cf641ced0712679b795047eda95f75c02 (patch)
tree2811619be28aa8dbf602b8fdc89060804985150d /deskutils/py-paperless-ngx/files/patch-src_paperless_settings.py
parentwww/UniversalFeedCreator: Update to 1.9.0 (diff)
deskutils/py-paperless-ngx: New port
Paperless-ngx is a document management system that transforms your physical documents into a searchable online archive so you can keep, well, less paper. Paperless-ngx is the official successor to the original Paperless and Paperless-ng projects.
Diffstat (limited to 'deskutils/py-paperless-ngx/files/patch-src_paperless_settings.py')
-rw-r--r--deskutils/py-paperless-ngx/files/patch-src_paperless_settings.py29
1 files changed, 29 insertions, 0 deletions
diff --git a/deskutils/py-paperless-ngx/files/patch-src_paperless_settings.py b/deskutils/py-paperless-ngx/files/patch-src_paperless_settings.py
new file mode 100644
index 000000000000..790cd6ed5278
--- /dev/null
+++ b/deskutils/py-paperless-ngx/files/patch-src_paperless_settings.py
@@ -0,0 +1,29 @@
+--- src/paperless/settings.py.orig 2024-02-10 19:45:46 UTC
++++ src/paperless/settings.py
+@@ -24,8 +24,6 @@ if configuration_path and os.path.exists(configuration
+ load_dotenv(configuration_path)
+ elif os.path.exists("../paperless.conf"):
+ load_dotenv("../paperless.conf")
+-elif 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")
+
+@@ -254,7 +252,7 @@ THUMBNAIL_DIR = MEDIA_ROOT / "documents" / "thumbnails
+
+ DATA_DIR = __get_path("PAPERLESS_DATA_DIR", BASE_DIR.parent / "data")
+
+-NLTK_DIR = __get_path("PAPERLESS_NLTK_DIR", "/usr/share/nltk_data")
++NLTK_DIR = __get_path("PAPERLESS_NLTK_DIR", "/usr/local/share/nltk_data")
+
+ TRASH_DIR = os.getenv("PAPERLESS_TRASH_DIR")
+
+@@ -1002,7 +1000,7 @@ FILENAME_FORMAT_REMOVE_NONE = __get_boolean(
+
+ THUMBNAIL_FONT_NAME = os.getenv(
+ "PAPERLESS_THUMBNAIL_FONT_NAME",
+- "/usr/share/fonts/liberation/LiberationSerif-Regular.ttf",
++ "/usr/local/share/fonts/Liberation/LiberationSerif-Regular.ttf",
+ )
+
+ # Tika settings