summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBurak Emir Sezen <burakemirsezen@gmail.com>2026-07-22 22:23:30 +0200
committerGitHub <noreply@github.com>2026-07-22 22:23:30 +0200
commitef8f6470e0473a1548f175217aaa7b9346ce6973 (patch)
treebf0fe61f0333fa632bd5bb90c9f10b9f0dfb1045
parent6da6eee265daeb4a62ab638d6921522bf405de69 (diff)
[fix] container: ignore invalid SEARXNG_PORT values (#6439)
* [fix] container: ignore invalid SEARXNG_PORT values * add note --------- Co-authored-by: Ivan Gabaldon <igabaldon@inetol.net>
-rwxr-xr-xcontainer/entrypoint.sh11
1 files changed, 10 insertions, 1 deletions
diff --git a/container/entrypoint.sh b/container/entrypoint.sh
index 1ba87cc63..f97cc374a 100755
--- a/container/entrypoint.sh
+++ b/container/entrypoint.sh
@@ -112,6 +112,15 @@ if [ "$(id -u)" -eq 0 ]; then
fi
# ENVs aliases
-export GRANIAN_PORT="${SEARXNG_PORT:-$GRANIAN_PORT}"
+# https://github.com/searxng/searxng/issues/5934
+case "${SEARXNG_PORT:-}" in
+ '') ;;
+ *[!0-9]*)
+ unset SEARXNG_PORT
+ ;;
+ *)
+ export GRANIAN_PORT="$SEARXNG_PORT"
+ ;;
+esac
exec /usr/local/searxng/.venv/bin/granian searx.webapp:app