diff options
| author | 2023-10-25 15:57:27 +0200 | |
|---|---|---|
| committer | 2023-10-25 15:57:27 +0200 | |
| commit | 280a1e11556bd22f3640facc12ec5bdaa5d10d90 (patch) | |
| tree | ffeaeaf2b16deb7688f0a282554dd579daf97c06 /Docker | |
| parent | e1ad4fc7337beda58ed8c6caf71318e733a67e6a (diff) | |
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
Diffstat (limited to 'Docker')
| -rwxr-xr-x | Docker/entrypoint.sh | 2 |
1 files changed, 1 insertions, 1 deletions
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 |
