Browse Source

#312 Create symbolic link for debug.log only for WordPress specisifc websites

old-stable
harshadyeola 10 years ago
parent
commit
76102d9fd0
  1. 1
      src/modules/site/create/ee_mod_setup_domain.sh
  2. 3
      src/modules/site/create/ee_mod_setup_wordpress.sh

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

@ -24,7 +24,6 @@ function ee_mod_setup_domain()
# Creating symbolic links for logs
ee_lib_symbolic_link /var/log/nginx/$EE_DOMAIN.access.log /var/www/$EE_DOMAIN/logs/access.log
ee_lib_symbolic_link /var/log/nginx/$EE_DOMAIN.error.log /var/www/$EE_DOMAIN/logs/error.log
ee_lib_symbolic_link /var/www/$EE_DOMAIN/htdocs/wp-content/debug.log /var/www/$EE_DOMAIN/logs/debug.log
else
ee_lib_error "$EE_DOMAIN already exist, exit status = " $?
fi

3
src/modules/site/create/ee_mod_setup_wordpress.sh

@ -10,6 +10,9 @@ function ee_mod_setup_wordpress()
cd /var/www/$EE_DOMAIN/htdocs && wp --allow-root core download &>> $EE_COMMAND_LOG \
|| ee_lib_error "Unable to download WordPress, exit status = " $?
# Symbolic link for debug.log
ee_lib_symbolic_link /var/www/$EE_DOMAIN/htdocs/wp-content/debug.log /var/www/$EE_DOMAIN/logs/debug.log
# Database setup
ee_mod_setup_database

Loading…
Cancel
Save