]> git.ipfire.org Git - thirdparty/paperless-ngx.git/commitdiff
Ignores a specific _FILE setting which doesn't actually get set to a file
authorTrenton Holmes <797416+stumpylog@users.noreply.github.com>
Mon, 1 May 2023 01:08:58 +0000 (18:08 -0700)
committerTrenton H <797416+stumpylog@users.noreply.github.com>
Mon, 1 May 2023 14:23:31 +0000 (07:23 -0700)
docker/env-from-file.sh

index 37535c220c6029f41f9ba42199bc8a0c74d0d206..b67a82c86c2ae250bf530f8f8a13808e38ac9dd1 100644 (file)
@@ -15,6 +15,10 @@ do
        env_name=${line%%=*}
        # 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
+                       continue
+               fi
                # Extract the value of the environment
                env_value=${line#*=}