Przeglądaj źródła

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
Mossroy 2 lat temu
rodzic
commit
280a1e1155
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      Docker/entrypoint.sh

+ 1 - 1
Docker/entrypoint.sh

@@ -12,7 +12,7 @@ if [ -n "$LISTEN" ]; then
 fi
 fi
 
 
 if [ -n "$TRUSTED_PROXY" ]; then
 if [ -n "$TRUSTED_PROXY" ]; then
-	if [ "$TRUSTED_PROXY" -eq 0 ]; then
+	if [ "$TRUSTED_PROXY" = "0" ]; then
 		# Disable RemoteIPHeader and RemoteIPTrustedProxy
 		# Disable RemoteIPHeader and RemoteIPTrustedProxy
 		find /etc/apache2/ -type f -name FreshRSS.Apache.conf -exec sed -r -i "/^\s*RemoteIP.*$/s/^/#/" {} \;
 		find /etc/apache2/ -type f -name FreshRSS.Apache.conf -exec sed -r -i "/^\s*RemoteIP.*$/s/^/#/" {} \;
 	else
 	else