From 280a1e11556bd22f3640facc12ec5bdaa5d10d90 Mon Sep 17 00:00:00 2001 From: Mossroy Date: Wed, 25 Oct 2023 15:57:27 +0200 Subject: Avoid a warning on non-numeric TRUSTED_PROXY en var (#5733) * Update entrypoint.sh to avoid a warning on non-numeric TRUSTED_PROXY env var Fixes #5732 5732 * Use POSIX-compatible syntax * Fix POSIX syntax --- Docker/entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Docker/entrypoint.sh b/Docker/entrypoint.sh index 6cb5a49b4..c17d0d445 100755 --- a/Docker/entrypoint.sh +++ b/Docker/entrypoint.sh @@ -12,7 +12,7 @@ if [ -n "$LISTEN" ]; then fi if [ -n "$TRUSTED_PROXY" ]; then - if [ "$TRUSTED_PROXY" -eq 0 ]; then + if [ "$TRUSTED_PROXY" = "0" ]; then # Disable RemoteIPHeader and RemoteIPTrustedProxy find /etc/apache2/ -type f -name FreshRSS.Apache.conf -exec sed -r -i "/^\s*RemoteIP.*$/s/^/#/" {} \; else -- cgit v1.2.3