Browse Source

Move ee site info to ee system info

old-stable
Mitesh Shah 12 years ago
parent
commit
225b06a760
  1. 2
      etc/bash_completion.d/ee
  2. 41
      usr/local/sbin/easyengine

2
etc/bash_completion.d/ee

@ -23,7 +23,7 @@ EEAUTO()
;; ;;
system) system)
COMPREPLY=( $( compgen -W "install remove purge config" -- $CURRENT ) ) COMPREPLY=( $( compgen -W "install remove purge info config" -- $CURRENT ) )
return 0 return 0
;; ;;

41
usr/local/sbin/easyengine

@ -476,7 +476,7 @@ PHPUSERINFO()
|| OwnError "Unable To Findout PHP Username" || OwnError "Unable To Findout PHP Username"
} }
SERVERINFO() SYSTEMINFO()
{ {
# Nginx Information # Nginx Information
NGINXVER=$(nginx -v 2>&1 | cut -d':' -f2 | cut -d' ' -f2) NGINXVER=$(nginx -v 2>&1 | cut -d':' -f2 | cut -d' ' -f2)
@ -1206,6 +1206,16 @@ then
fi fi
# Easy Engine Info
elif [ "$2" = "info" ]
then
# Get Nginx PHP & MySQL Information
SYSTEMINFO
fi
# Easy Engine Config # Easy Engine Config
elif [ "$2" = "config" ] elif [ "$2" = "config" ]
then then
@ -1274,28 +1284,19 @@ then
elif [ "$2" = "info" ] elif [ "$2" = "info" ]
then then
# Server Information
SERVERINFO
# Check SITENAME Is Empty Or Not # Check SITENAME Is Empty Or Not
if [ ! -z "$3" ] SITENAMECHECK=$3
then EESITENAME
SITENAMECHECK=$3
EESITENAME
# Check The Website Is Exist # Check The Website Enabled
ls /etc/nginx/sites-available/$DOMAIN &> /dev/null \ ls /etc/nginx/sites-enabled/$DOMAIN &> /dev/null \
|| OwnError "The $DOMAIN Is Not Found In Available Websites List" || OwnError "The $DOMAIN Is Not Enabled"
if [ $? -eq 0 ]
then
# Display The Various Information About $DOMAIN if [ $? -eq 0 ]
echo -e "\033[34m Display The Various Information About $DOMAIN \e[0m" then
echo -e "\033[34m Under Developments \e[0m" # Display The Various Information About $DOMAIN
echo -e "\033[34m Display The Various Information About $DOMAIN \e[0m"
fi echo -e "\033[34m Under Developments \e[0m"
fi fi

Loading…
Cancel
Save