From 59d18db34f98509fad0c2a4696e5bdf85586cb13 Mon Sep 17 00:00:00 2001 From: Mitesh Shah Date: Mon, 16 Sep 2013 14:57:35 +0530 Subject: [PATCH] Add Nginx Version Details --- usr/local/sbin/easyengine | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/usr/local/sbin/easyengine b/usr/local/sbin/easyengine index f6a7143b..b317f557 100755 --- a/usr/local/sbin/easyengine +++ b/usr/local/sbin/easyengine @@ -479,6 +479,7 @@ PHPUSERINFO() SERVERINFO() { # Nginx Information + NGINXVER=$(nginx -v 2>&1 | cut -d':' -f2 | cut -d' ' -f2) NGINXUSER=$(cat /etc/nginx/nginx.conf | grep ^user | cut -d' ' -f2 | cut -d';' -f1) NGINXPROCESSES=$(cat /etc/nginx/nginx.conf | grep worker_processes | cut -d' ' -f2 | cut -d';' -f1) NGINXCONNECTIONS=$(cat /etc/nginx/nginx.conf | grep worker_connections | cut -d' ' -f2 | cut -d';' -f1) @@ -486,7 +487,7 @@ SERVERINFO() CLIENTMAXBODYSIZE=$(cat /etc/nginx/nginx.conf | grep client_max_body_size | cut -d' ' -f2 | cut -d';' -f1) NGINXALLOWEDIPADD=$(grep allow /etc/nginx/common/allowed_ip.conf | cut -d' ' -f2 | cut -d';' -f1 | tr '\n' ' ') - echo -e "\033[34m Nginx Information:\n \e[0m" + echo -e "\033[34m Nginx ($NGINXVER) Information:\n \e[0m" echo -e "\033[34m Nginx User:\t\t\t \033[37m $NGINXUSER \e[0m" echo -e "\033[34m Nginx Worker Processes:\t \033[37m $NGINXPROCESSES \e[0m" echo -e "\033[34m Nginx Worker Connections:\t \033[37m $NGINXCONNECTIONS \e[0m"