Browse Source

Move command: ee system info -> ee info

old-stable
Mitesh Shah 11 years ago
parent
commit
01f89e116e
  1. 6
      etc/bash_completion.d/ee
  2. 28
      usr/local/sbin/easyengine

6
etc/bash_completion.d/ee

@ -1,4 +1,4 @@
# Easy Engine Auto Complete Feature
# EasyEngine Auto Complete Feature
@ -18,12 +18,12 @@ EEAUTO()
# List Of Suggested Words
easyengine|ee)
COMPREPLY=( $(compgen -W "help version system site" -- $CURRENT) )
COMPREPLY=( $(compgen -W "info help version system site" -- $CURRENT) )
return 0
;;
system)
COMPREPLY=( $( compgen -W "install remove purge info" -- $CURRENT ) )
COMPREPLY=( $( compgen -W "install remove purge" -- $CURRENT ) )
return 0
;;

28
usr/local/sbin/easyengine

@ -643,7 +643,7 @@ SYSTEMINFO()
PHPREQUESTTERMINATE=$(grep ^request_terminate_timeout /etc/php5/fpm/pool.d/www.conf | cut -d'=' -f2| cut -d' ' -f2)
PHPFASTCGIREQUEST=$(grep ^listen /etc/php5/fpm/pool.d/www.conf | cut -d'=' -f2| cut -d' ' -f2)
echo -e "\033[34m\n\n PHP ($PHPVER) Information:\n\e[0m"
echo -e "\033[34m\n\nPHP ($PHPVER) Information:\n\e[0m"
echo -e "\033[34mPHP User:\t\t\t \033[37m$PHPUSER\e[0m"
echo -e "\033[34mPHP expose_php:\t\t\t \033[37m$PHPEXPOSE\e[0m"
echo -e "\033[34mPHP post_max_size:\t\t \033[37m$PHPPOSTMAXSIZE\e[0m"
@ -1023,21 +1023,26 @@ REMOVENGINXCONF()
}
# Easy Engine Version
if [ "$1" = "-v" ] || [ "$1" = "version" ] || [ "$1" = "--version" ]
then
# Display Easy Engine Version
echo "easyengine version: 1.0.0"
# Easy Engine Help
if [ "$1" = "-h" ] || [ "$1" = "help" ] || [ "$1" = "--help" ]
elif [ "$1" = "-h" ] || [ "$1" = "help" ] || [ "$1" = "--help" ]
then
# Display Man Pages
man ee
# Easy Engine Version
elif [ "$1" = "-v" ] || [ "$1" = "version" ] || [ "$1" = "--version" ]
# Easy Engine Info
elif [ "$1" = "info" ]
then
# Display Easy Engine Version
echo "easyengine version: 1.0.0"
# Get Nginx PHP & MySQL Information
SYSTEMINFO
# Easy Engine System Settings
elif [ "$1" = "system" ]
@ -1380,13 +1385,6 @@ then
fi
# Easy Engine Info
elif [ "$2" = "info" ]
then
# Get Nginx PHP & MySQL Information
SYSTEMINFO
fi

Loading…
Cancel
Save