Skip to content

A community-supported supercharged document management system: scan, index and archive all your documents

Fix: dont try to load PAPERLESS_MODEL_FILE as env from file (#8040)

shamoone775b6346ab6
diff --git a/docker/env-from-file.sh b/docker/env-from-file.sh
index b67a82c86..41f51d065 100644
--- a/docker/env-from-file.sh
+++ b/docker/env-from-file.sh
@@ -16,7 +16,7 @@ do
# Check if it starts with "PAPERLESS_" and ends in "_FILE"
if [[ ${env_name} == PAPERLESS_*_FILE ]]; then
# This should have been named different..
- if [[ ${env_name} == "PAPERLESS_OCR_SKIP_ARCHIVE_FILE" ]]; then
+ if [[ ${env_name} == "PAPERLESS_OCR_SKIP_ARCHIVE_FILE" || ${env_name} == "PAPERLESS_MODEL_FILE" ]]; then
continue
fi
# Extract the value of the environment