Browse Source

autcompletion script updated

old-stable
harshadyeola 10 years ago
parent
commit
c54aca0ebe
  1. 8
      bin/easyengine
  2. 2
      config/bash_completion.d/ee

8
bin/easyengine

@ -598,7 +598,7 @@ elif [ "$EE_FIRST" = "site" ]; then
|| [ "$EE_SITE_CREATE_OPTION" = "--wp" ] || [ "$EE_SITE_CREATE_OPTION" = "--wpsubdomain" ] || [ "$EE_SITE_CREATE_OPTION" = "--wpsubdir" ]; then || [ "$EE_SITE_CREATE_OPTION" = "--wp" ] || [ "$EE_SITE_CREATE_OPTION" = "--wpsubdomain" ] || [ "$EE_SITE_CREATE_OPTION" = "--wpsubdir" ]; then
ee_mod_update_domain ee_mod_update_domain
else else
ee_lib_error "$EE_DOMAIN already with $EE_SITE_CREATE_OPTION $EE_SITE_CACHE_OPTION, exit status" $? ee_lib_error "$EE_DOMAIN already with $EE_SITE_CREATE_OPTION $EE_SITE_CACHE_OPTION options, exit status" $?
fi fi
# Setup WordPress # Setup WordPress
@ -655,7 +655,7 @@ elif [ "$EE_FIRST" = "site" ]; then
# Update NGINX configuration for $EE_DOMAIN # Update NGINX configuration for $EE_DOMAIN
ee_mod_update_domain ee_mod_update_domain
else else
ee_lib_error "$EE_DOMAIN already with $EE_SITE_CREATE_OPTION $EE_SITE_CACHE_OPTION, exit status" $? ee_lib_error "$EE_DOMAIN already with $EE_SITE_CREATE_OPTION $EE_SITE_CACHE_OPTION options, exit status" $?
fi fi
# Setup WordPress Network # Setup WordPress Network
if [ "$EE_SITE_CREATE_OPTION" = "--wpsubdir" ] || [ "$EE_SITE_CREATE_OPTION" = "--wpsubdomain" ]; then if [ "$EE_SITE_CREATE_OPTION" = "--wpsubdir" ] || [ "$EE_SITE_CREATE_OPTION" = "--wpsubdomain" ]; then
@ -675,7 +675,7 @@ elif [ "$EE_FIRST" = "site" ]; then
# Update NGINX configuration for $EE_DOMAIN # Update NGINX configuration for $EE_DOMAIN
ee_mod_update_domain ee_mod_update_domain
else else
ee_lib_error "$EE_DOMAIN already with $EE_SITE_CREATE_OPTION $EE_SITE_CACHE_OPTION, exit status" $? ee_lib_error "$EE_DOMAIN already with $EE_SITE_CREATE_OPTION $EE_SITE_CACHE_OPTION options, exit status" $?
fi fi
# Update cache plugins # Update cache plugins
ee_mod_update_plugins ee_mod_update_plugins
@ -691,7 +691,7 @@ elif [ "$EE_FIRST" = "site" ]; then
# Update NGINX configuration for $EE_DOMAIN # Update NGINX configuration for $EE_DOMAIN
ee_mod_update_domain ee_mod_update_domain
else else
ee_lib_error "$EE_DOMAIN already with $EE_SITE_CREATE_OPTION $EE_SITE_CACHE_OPTION, exit status" $? ee_lib_error "$EE_DOMAIN already with $EE_SITE_CREATE_OPTION $EE_SITE_CACHE_OPTION options, exit status" $?
fi fi
# Update cache plugins # Update cache plugins
ee_mod_update_plugins ee_mod_update_plugins

2
config/bash_completion.d/ee

@ -51,7 +51,7 @@ function EE_AUTO()
return 0 return 0
;; ;;
info|enable|edit|show|delete|cd|log) info|enable|edit|show|delete|cd|log|update)
if [ "$PREVIOUS2" = "site" ]; then if [ "$PREVIOUS2" = "site" ]; then
COMPREPLY=( $( compgen -W '$(command find /etc/nginx/sites-available/ -type f -printf "%P " 2> /dev/null)' -- $CURRENT ) ) COMPREPLY=( $( compgen -W '$(command find /etc/nginx/sites-available/ -type f -printf "%P " 2> /dev/null)' -- $CURRENT ) )
fi fi

Loading…
Cancel
Save