]> git.ipfire.org Git - thirdparty/paperless-ngx.git/commitdiff
Fix: dont try to load PAPERLESS_MODEL_FILE as env from file (#8040)
authorshamoon <4887959+shamoon@users.noreply.github.com>
Sat, 26 Oct 2024 22:29:20 +0000 (15:29 -0700)
committerGitHub <noreply@github.com>
Sat, 26 Oct 2024 22:29:20 +0000 (22:29 +0000)
docker/env-from-file.sh

index b67a82c86c2ae250bf530f8f8a13808e38ac9dd1..41f51d06545586c0236f5932db20df3021d0aaa0 100644 (file)
@@ -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