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)
COMPREPLY=( $( compgen -W "install remove purge config" -- $CURRENT ) )
COMPREPLY=( $( compgen -W "install remove purge info config" -- $CURRENT ) )
return 0
;;

41
usr/local/sbin/easyengine

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

Loading…
Cancel
Save