Browse Source

Change ee site list options

old-stable
Mitesh Shah 11 years ago
parent
commit
697f4273e4
  1. 7
      etc/bash_completion.d/ee
  2. 25
      usr/local/sbin/easyengine

7
etc/bash_completion.d/ee

@ -33,7 +33,12 @@ EEAUTO()
;;
site)
COMPREPLY=( $( compgen -W "list listall show info create enable disable delete" -- $CURRENT ) )
COMPREPLY=( $( compgen -W "list show info create enable disable delete" -- $CURRENT ) )
return 0
;;
list)
COMPREPLY=( $( compgen -W "enable available" -- $CURRENT ) )
return 0
;;

25
usr/local/sbin/easyengine

@ -1464,18 +1464,21 @@ then
if [ "$2" = "list" ]
then
# Display The List Of Enabled Websites
echo -e "\033[34mDisplay The List Of Enabled Websites:\e[0m"
ls /etc/nginx/sites-enabled/ \
|| OwnError "Unable To Display The List Of Enabled Websites"
elif [ "$2" = "listall" ]
then
if [ "$3" = "available" ]
then
# Display The List Of Available Sites
echo -e "\033[34mDisplay The List Of Available Websites:\e[0m"
ls /etc/nginx/sites-available/ \
|| OwnError "Unable To Display The List Of Available Websites"
# Display The List Of Available Sites
echo -e "\033[34mDisplay The List Of Available Websites:\e[0m"
ls /etc/nginx/sites-available/ \
|| OwnError "Unable To Display The List Of Available Websites"
else
# Display The List Of Enabled Websites
echo -e "\033[34mDisplay The List Of Enabled Websites:\e[0m"
ls /etc/nginx/sites-enabled/ \
|| OwnError "Unable To Display The List Of Enabled Websites"
fi
elif [ "$2" = "show" ]
then

Loading…
Cancel
Save