Browse Source

Remove Unwated Functions

old-stable
Mitesh Shah 11 years ago
parent
commit
c2de743dfd
  1. 19
      etc/bash_completion.d/ee
  2. 53
      usr/local/sbin/easyengine

19
etc/bash_completion.d/ee

@ -18,12 +18,12 @@ EEAUTO()
# List Of Suggested Words
easyengine|ee)
COMPREPLY=( $(compgen -W "system site help" -- $CURRENT) )
COMPREPLY=( $(compgen -W "system site" -- $CURRENT) )
return 0
;;
system)
COMPREPLY=( $( compgen -W "install remove purge info config" -- $CURRENT ) )
COMPREPLY=( $( compgen -W "install remove purge info" -- $CURRENT ) )
return 0
;;
@ -32,19 +32,8 @@ EEAUTO()
return 0
;;
config)
COMPREPLY=( $( compgen -W "get set" -- $CURRENT ) )
return 0
;;
get|set)
COMPREPLY=( $( compgen -W "memory timeout" -- $CURRENT ) )
return 0
;;
site)
COMPREPLY=( $( compgen -W "list listall show info create enable disable delete backup restore update" -- $CURRENT ) )
COMPREPLY=( $( compgen -W "list listall show create enable disable delete" -- $CURRENT ) )
return 0
;;
@ -74,7 +63,7 @@ EEAUTO()
return 0
;;
create|update)
create)
COMPREPLY=( $( compgen -W "html php wp wpsubdir wpsubdomain" -- $CURRENT ) )
return 0
;;

53
usr/local/sbin/easyengine

@ -1219,22 +1219,22 @@ then
# Easy Engine Config
elif [ "$2" = "config" ]
then
#elif [ "$2" = "config" ]
#then
if [ "$3" = "set" ]
then
# if [ "$3" = "set" ]
# then
echo "Under Developments"
# echo "Under Developments"
elif [ "$3" = "get" ]
then
# elif [ "$3" = "get" ]
# then
echo "Under Developments"
# echo "Under Developments"
fi
# fi
fi
#fi
@ -1282,24 +1282,24 @@ then
fi
elif [ "$2" = "info" ]
then
#elif [ "$2" = "info" ]
#then
# Check SITENAME Is Empty Or Not
SITENAMECHECK=$3
EESITENAME
# SITENAMECHECK=$3
# EESITENAME
# Check The Website Enabled
ls /etc/nginx/sites-enabled/$DOMAIN &> /dev/null \
|| OwnError "The $DOMAIN Is Not Enabled"
# ls /etc/nginx/sites-enabled/$DOMAIN &> /dev/null \
# || OwnError "The $DOMAIN Is Not Enabled"
if [ $? -eq 0 ]
then
# 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"
# echo -e "\033[34m Display The Various Information About $DOMAIN \e[0m"
# echo -e "\033[34m Under Developments \e[0m"
fi
# fi
elif [ "$2" = "create" ]
then
@ -1782,9 +1782,6 @@ then
fi
#elif [ "$2" = "delete" ]
#then
fi
@ -1792,10 +1789,10 @@ then
# Easy Engine Update
elif [ "$1" = "update" ]
then
#elif [ "$1" = "update" ]
#then
echo -e "\033[34m Updating Easy Engine, Please wait... \e[0m"
curl -L rt.cx/ee | sudo bash
# echo -e "\033[34m Updating Easy Engine, Please wait... \e[0m"
# curl -L rt.cx/ee | sudo bash
fi

Loading…
Cancel
Save