Fix port-already-in-use openresty error (#206)

This commit is contained in:
Elbakyan Shirak 2024-04-17 16:31:28 +04:00 committed by GitHub
parent d21d760b01
commit b9097d5ef1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -511,6 +511,7 @@ setup_openresty(){
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
systemctl reload nginx
fi
fi