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 # List Of Suggested Words
easyengine|ee) easyengine|ee)
COMPREPLY=( $(compgen -W "system site help" -- $CURRENT) ) COMPREPLY=( $(compgen -W "system site" -- $CURRENT) )
return 0 return 0
;; ;;
system) system)
COMPREPLY=( $( compgen -W "install remove purge info config" -- $CURRENT ) ) COMPREPLY=( $( compgen -W "install remove purge info" -- $CURRENT ) )
return 0 return 0
;; ;;
@ -32,19 +32,8 @@ EEAUTO()
return 0 return 0
;; ;;
config)
COMPREPLY=( $( compgen -W "get set" -- $CURRENT ) )
return 0
;;
get|set)
COMPREPLY=( $( compgen -W "memory timeout" -- $CURRENT ) )
return 0
;;
site) 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 return 0
;; ;;
@ -74,7 +63,7 @@ EEAUTO()
return 0 return 0
;; ;;
create|update) create)
COMPREPLY=( $( compgen -W "html php wp wpsubdir wpsubdomain" -- $CURRENT ) ) COMPREPLY=( $( compgen -W "html php wp wpsubdir wpsubdomain" -- $CURRENT ) )
return 0 return 0
;; ;;

53
usr/local/sbin/easyengine

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

Loading…
Cancel
Save