From af2203fac82e3f2b83fa766a16fd6a65fd913e36 Mon Sep 17 00:00:00 2001 From: Jonny McCullagh Date: Wed, 12 Oct 2022 14:54:25 +0100 Subject: [PATCH] remove ipv6 conf from nginx proxy if ipv6 not enabled --- hosting/proxy/10-listen-on-ipv6-by-default.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hosting/proxy/10-listen-on-ipv6-by-default.sh b/hosting/proxy/10-listen-on-ipv6-by-default.sh index 7d25a644c8..1d62732ea1 100644 --- a/hosting/proxy/10-listen-on-ipv6-by-default.sh +++ b/hosting/proxy/10-listen-on-ipv6-by-default.sh @@ -8,7 +8,7 @@ NGINX_CONF_FILE="/etc/nginx/nginx.conf" DEFAULT_CONF_FILE="/etc/nginx/conf.d/default.conf" # check if we have ipv6 available -if [ ! -f "/proc/net/if_jonnyinet6" ]; then +if [ ! -f "/proc/net/if_inet6" ]; then # ipv6 not available so delete lines from nginx conf if [ -f "$NGINX_CONF_FILE" ]; then sed -i '/listen \[::\]/d' $NGINX_CONF_FILE