From 7b436a30fd97dafd563e078de2abef32fda6aa36 Mon Sep 17 00:00:00 2001 From: harshadyeola Date: Wed, 24 Sep 2014 18:01:43 +0530 Subject: [PATCH] minor update --- src/lib/ee_lib_mysql_info.sh | 2 +- src/lib/ee_lib_nginx_info.sh | 2 +- src/lib/ee_lib_php_info.sh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib/ee_lib_mysql_info.sh b/src/lib/ee_lib_mysql_info.sh index 6e4706de..d35a1fa6 100644 --- a/src/lib/ee_lib_mysql_info.sh +++ b/src/lib/ee_lib_mysql_info.sh @@ -3,7 +3,7 @@ function ee_lib_mysql_info() { mysqladmin ping &>> $EE_COMMAND_LOG - if [ $? -ne 0 ]; then + if [ $? -eq 0 ]; then local ee_mysql_version=$(mysql -V | awk '{print($5)}' | cut -d ',' -f1) local ee_mysql_port=$(mysql -e "show variables" | grep ^port | awk '{print($2)}') local ee_mysql_socket=$(mysql -e "show variables" | grep "^socket" | awk '{print($2)}') diff --git a/src/lib/ee_lib_nginx_info.sh b/src/lib/ee_lib_nginx_info.sh index 7d568b56..0214fc80 100644 --- a/src/lib/ee_lib_nginx_info.sh +++ b/src/lib/ee_lib_nginx_info.sh @@ -3,7 +3,7 @@ function ee_lib_nginx_info() { ee_lib_package_check $EE_NGINX_PACKAGE - if [ "$EE_PACKAGE_NAME" != "" ]; then + if [ "$EE_PACKAGE_NAME" = "" ]; then local ee_nginx_version=$(nginx -v 2>&1 | cut -d':' -f2 | cut -d' ' -f2 | cut -d'/' -f2) local ee_nginx_user=$(grep ^user /etc/nginx/nginx.conf | cut -d' ' -f2 | cut -d';' -f1) local ee_nginx_processes=$(grep worker_processes /etc/nginx/nginx.conf | cut -d' ' -f2 | cut -d';' -f1) diff --git a/src/lib/ee_lib_php_info.sh b/src/lib/ee_lib_php_info.sh index eca18548..48500c60 100644 --- a/src/lib/ee_lib_php_info.sh +++ b/src/lib/ee_lib_php_info.sh @@ -2,7 +2,7 @@ function ee_lib_php_info() { ee_lib_package_check php5-fpm - if [ "$EE_PACKAGE_NAME" != "" ]; then + if [ "$EE_PACKAGE_NAME" = "" ]; then #Collect information from php.ini local ee_php_version=$(php -v | head -n1 | cut -d' ' -f2 | cut -d'+' -f1) local ee_php_memory=$(grep ^memory_limit /etc/php5/fpm/php.ini | awk '{print $3}')