summaryrefslogtreecommitdiff
path: root/container/entrypoint.sh
diff options
context:
space:
mode:
Diffstat (limited to 'container/entrypoint.sh')
-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