From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Sat, 26 Oct 2024 22:29:20 +0000 (-0700) Subject: Fix: dont try to load PAPERLESS_MODEL_FILE as env from file (#8040) X-Git-Tag: v2.13.1~18 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e775b6346ab6ea2a9359d2c445aa9f13a9ce30f9;p=thirdparty%2Fpaperless-ngx.git Fix: dont try to load PAPERLESS_MODEL_FILE as env from file (#8040) --- diff --git a/docker/env-from-file.sh b/docker/env-from-file.sh index b67a82c86c..41f51d0654 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