Update 'sysinfo.sh'
This commit is contained in:
parent
51e16f9f32
commit
33f1b7f492
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue