From 9074cf2d44cce821c3d14569b958dd01fc47d023 Mon Sep 17 00:00:00 2001 From: aptalca Date: Tue, 9 Feb 2021 11:23:08 -0500 Subject: [PATCH] I like to copy pasta --- root/etc/cont-init.d/50-config | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/root/etc/cont-init.d/50-config b/root/etc/cont-init.d/50-config index 6c998fc..8400d00 100644 --- a/root/etc/cont-init.d/50-config +++ b/root/etc/cont-init.d/50-config @@ -82,9 +82,9 @@ cp /config/fail2ban/jail.local /etc/fail2ban/jail.local cp /defaults/502.html /config/www/502.html # remove lua bits from nginx.conf if not done before -if ! grep -q '#Removed lua' nginx.conf; then +if ! grep -q '#Removed lua' /config/nginx/nginx.conf; then echo "Removing lua specific info from nginx.conf" - sed -i 's|\tlua_load_resty_core off;|\t#Removed lua. Do not remove this comment|g' nginx.conf + sed -i 's|\tlua_load_resty_core off;|\t#Removed lua. Do not remove this comment|g' /config/nginx/nginx.conf fi # copy pre-generated dhparams or generate if needed