Browse Source

ee info for installed packages only

bugfixes
harshadyeola 11 years ago
parent
commit
bf3be1fd87
  1. 5
      src/lib/ee_lib_mysql_info.sh
  2. 5
      src/lib/ee_lib_nginx_info.sh
  3. 6
      src/lib/ee_lib_php_info.sh

5
src/lib/ee_lib_mysql_info.sh

@ -2,6 +2,8 @@
function ee_lib_mysql_info()
{
mysqladmin ping &>> $EE_COMMAND_LOG
if [ $? -ne 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)}')
@ -19,4 +21,7 @@ function ee_lib_mysql_info()
ee_lib_echo_escape "max_used_connections\t\t \033[37m$ee_mysql_max_used_connections/$ee_mysql_max_connections"
ee_lib_echo_escape "datadir\t\t\t\t \033[37m$ee_mysql_data_dir"
ee_lib_echo_escape "socket\t\t\t\t \033[37m$ee_mysql_socket"
else
ee_lib_echo "MYSQL not installed"
fi
}

5
src/lib/ee_lib_nginx_info.sh

@ -2,6 +2,8 @@
function ee_lib_nginx_info()
{
ee_lib_package_check $EE_NGINX_PACKAGE
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)
@ -21,4 +23,7 @@ function ee_lib_nginx_info()
ee_lib_echo_escape "fastcgi_read_timeout\t\t \033[37m$ee_fastcgi_timeout"
ee_lib_echo_escape "client_max_body_size\t\t \033[37m$ee_clinet_max_body_size"
ee_lib_echo_escape "allow\t\t\t\t \033[37m$ee_nginx_allowed_ip_add"
else
ee_lib_echo "NGINX not installed"
fi
}

6
src/lib/ee_lib_php_info.sh

@ -1,6 +1,8 @@
# PHP information
function ee_lib_php_info()
{
ee_lib_package_check php5-fpm
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}')
@ -48,5 +50,7 @@ function ee_lib_php_info()
ee_lib_echo_escape "xdebug.profiler_enable_trigger\t \033[37m$ee_xdebug_check"
ee_lib_echo_escape "listen\t\t\t\t \033[37m$ee_php_listen"
done
else
ee_lib_echo "PHP not installed"
fi
}

Loading…
Cancel
Save