I like to copy pasta

This commit is contained in:
aptalca 2021-02-09 11:24:00 -05:00
parent 7fb72aef71
commit dc404df24f

View File

@ -5,9 +5,9 @@ mkdir -p \
/config/geoip2db
# 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
# create GeoIP2 folder symlink