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_mod_update_domain
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
# Setup WordPress
@ -655,7 +655,7 @@ elif [ "$EE_FIRST" = "site" ]; then
# Update NGINX configuration for $EE_DOMAIN
ee_mod_update_domain
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
# Setup WordPress Network
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
ee_mod_update_domain
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
# Update cache plugins
ee_mod_update_plugins
@ -691,7 +691,7 @@ elif [ "$EE_FIRST" = "site" ]; then
# Update NGINX configuration for $EE_DOMAIN
ee_mod_update_domain
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
# Update cache plugins
ee_mod_update_plugins

2
config/bash_completion.d/ee

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

Loading…
Cancel
Save