Refactor ERROR_PATTERN in auto-boot-ollama-host.lua to simplify error message format

This commit is contained in:
Bastian (BaM)
2025-09-14 10:54:51 +02:00
parent 5f53bea04a
commit ee47b9378c

View File

@@ -19,7 +19,7 @@ local OLLAMA_HOST = getenv("OLLAMA_HOST", "192.168.222.12")
local OLLAMA_PORT = tonumber(getenv("OLLAMA_PORT", "11434")) local OLLAMA_PORT = tonumber(getenv("OLLAMA_PORT", "11434"))
local ERROR_PATTERN = getenv( local ERROR_PATTERN = getenv(
"ERROR_PATTERN", "ERROR_PATTERN",
("Error: [ERROR] Document analysis failed: connect EHOSTUNREACH %s:%d"):format(OLLAMA_HOST, OLLAMA_PORT) ("connect EHOSTUNREACH %s:%d"):format(OLLAMA_HOST, OLLAMA_PORT)
) )
-- Optional Wake-on-LAN -- Optional Wake-on-LAN