Browse Source

Minor fix of if statements

old-stable
Mitesh Shah 12 years ago
parent
commit
84e68390fb
  1. 2
      etc/bash_completion.d/ee
  2. 4
      usr/local/sbin/easyengine

2
etc/bash_completion.d/ee

@ -45,7 +45,7 @@ EEAUTO()
return 0
;;
show|info|enable|db)
show|info|enable|db|files|all)
COMPREPLY=( $( compgen -W '$(command find /etc/nginx/sites-available/ -type f -printf "%P " 2>/dev/null)' -- $CURRENT ) )
return 0
;;

4
usr/local/sbin/easyengine

@ -657,7 +657,7 @@ REMOVEFILES()
echo
read -p "Are You Sure To Remove $DOMAIN Webroot (y/n): " ANSWER
if [ "$ANSWER" = "y"]
if [ "$ANSWER" = "y" ]
then
# Remove Webroot
rm -rf /var/www/$DOMAIN || OwnError "Unable To Remove $DOMAIN Webroot"
@ -673,7 +673,7 @@ REMOVENGINXCONF()
echo
read -p "Are You Sure To Remove $DOMAIN Nginx Configuraion (y/n): " ANSWER
if [ "$ANSWER" = "y"]
if [ "$ANSWER" = "y" ]
then
# Remove Webroot
rm -rf /etc/nginx/sites-available/$DOMAIN /etc/nginx/sites-enabled/$DOMAIN \

Loading…
Cancel
Save