Fix nginx configuration (#177)

This commit is contained in:
Elbakyan Shirak 2024-03-22 16:57:31 +04:00 committed by GitHub
parent 286e964d8e
commit 3deb653ef0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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