mirror of
https://github.com/linuxserver/docker-nginx.git
synced 2026-02-05 02:48:09 +08:00
I like to copy pasta
This commit is contained in:
parent
7fb72aef71
commit
dc404df24f
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user