Update 'sysinfo.sh'

This commit is contained in:
syntax 2021-04-05 18:57:21 +00:00
parent 51e16f9f32
commit 33f1b7f492

View File

@ -34,8 +34,8 @@ elif pidof apache2 >/dev/null 2>&1; then
elif pidof nginx >/dev/null 2>&1; then
WEBSERV="nginx"
else
WEBSERV=$(lsof -nP -iTCP -sTCP:LISTEN | grep :80 | awk '{print $1}' | head -1)":80"
WEBSERV=$(lsof -nP -iTCP -sTCP:LISTEN | grep :443 | awk '{print $1}' | head -1)":443"
WEBSERV=$(lsof -nP -iTCP -sTCP:LISTEN 2>/dev/null| grep :80 | awk '{print $1}' | head -1)":80"
WEBSERV=$(lsof -nP -iTCP -sTCP:LISTEN 2>/dev/null| grep :443 | awk '{print $1}' | head -1)":443"
fi
# Banner