Fix port-already-in-use openresty error (#206)
This commit is contained in:
parent
d21d760b01
commit
b9097d5ef1
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user