From 76102d9fd07de905fd85e573542d8f429779da27 Mon Sep 17 00:00:00 2001 From: harshadyeola Date: Wed, 17 Sep 2014 14:14:58 +0530 Subject: [PATCH] #312 Create symbolic link for debug.log only for WordPress specisifc websites --- src/modules/site/create/ee_mod_setup_domain.sh | 1 - src/modules/site/create/ee_mod_setup_wordpress.sh | 3 +++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/modules/site/create/ee_mod_setup_domain.sh b/src/modules/site/create/ee_mod_setup_domain.sh index 2fc8e622..9344c437 100644 --- a/src/modules/site/create/ee_mod_setup_domain.sh +++ b/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 diff --git a/src/modules/site/create/ee_mod_setup_wordpress.sh b/src/modules/site/create/ee_mod_setup_wordpress.sh index 897e9fec..ec5e1a5c 100644 --- a/src/modules/site/create/ee_mod_setup_wordpress.sh +++ b/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