Browse Source

Reload nginx after new site create

old-stable
Mitesh Shah 11 years ago
parent
commit
f95a21d709
  1. 3
      bin/easyengine
  2. 2
      src/modules/site/create/ee_mod_setup_domain.sh

3
bin/easyengine

@ -304,6 +304,9 @@ elif [ "$EE_FIRST" = "site" ]; then
# Git commit
ee_lib_git /etc/nginx/ "$EE_DOMAIN created with $EE_SITE_CREATE_OPTION $EE_SITE_CACHE_OPTION options"
# Execute: service nginx reload
ee_lib_service nginx reload
# Display WordPress credential
echo
ee_lib_echo_info "WordPress Admin Username: $EE_WP_USER"

2
src/modules/site/create/ee_mod_setup_domain.sh

@ -2,7 +2,7 @@
function ee_mod_setup_domain()
{
ls /etc/nginx/sites-available/$EE_DOMAIN &>> $EE_COMMAND_LOG
ls /etc/nginx/sites-available/$EE_DOMAIN &> /dev/null
if [ $? -ne 0 ]; then
# Creating $EE_DOMAIN

Loading…
Cancel
Save