Update 90-ingress.sh

This commit is contained in:
Alexandre
2023-09-02 19:21:17 +02:00
committed by GitHub
parent 176f9a76d4
commit b236b5d282

View File

@@ -7,7 +7,7 @@ NGINX_CONFIG=/etc/nginx/sites-available/ingress.conf
# Copy template
cp /defaults/default.conf "${NGINX_CONFIG}"
# Remove ssl part
awk -i inplace -v n=4 '/server/{n--}; n > 0' "${NGINX_CONFIG}" > tmpfile
awk -v n=4 '/server/{n--}; n > 0' "${NGINX_CONFIG}" > tmpfile
mv tmpfile "${NGINX_CONFIG}"
# Remove ipv6