Fix nginx configuration (#177)
This commit is contained in:
parent
286e964d8e
commit
3deb653ef0
@ -493,7 +493,7 @@ setup_openresty(){
|
||||
|
||||
if [ "$DIST" = "RedHat" ]; then
|
||||
# Remove default nginx settings [error] port 80 is already in use
|
||||
if [ -f /etc/nginx/nginx.conf ];
|
||||
if [ -f /etc/nginx/nginx.conf ]; then
|
||||
if grep -q "server {" /etc/nginx/nginx.conf ; then
|
||||
sed -e '$a}' -e '/server {/,$d' -i /etc/nginx/nginx.conf
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user