From d9c22c8a0f140538e02d7d3c57570bfbd6cbd82b Mon Sep 17 00:00:00 2001 From: Mitesh Shah Date: Wed, 24 Sep 2014 16:10:29 +0530 Subject: [PATCH] Added in logs file --- src/modules/site/create/ee_mod_setup_wordpress.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/modules/site/create/ee_mod_setup_wordpress.sh b/src/modules/site/create/ee_mod_setup_wordpress.sh index fb4a2ef8..f388b5b8 100644 --- a/src/modules/site/create/ee_mod_setup_wordpress.sh +++ b/src/modules/site/create/ee_mod_setup_wordpress.sh @@ -65,7 +65,7 @@ function ee_mod_setup_wordpress() EE_WP_USER=$($EE_CONFIG_GET wordpress.user) if [[ $EE_WP_USER = "" ]]; then - git config user.name &>> $EE_COMMAND_LOG + git config user.name &>> /dev/null if [ $? -eq 0 ]; then # Set WordPress username from git config user.name EE_WP_USER=$(git config user.name) @@ -89,7 +89,7 @@ function ee_mod_setup_wordpress() EE_WP_EMAIL=$($EE_CONFIG_GET wordpress.email) if [[ $EE_WP_EMAIL = "" ]]; then - git config user.email &>> $EE_COMMAND_LOG + git config user.email &>> /dev/null if [ $? -eq 0 ]; then # Set WordPress email from git config user.email EE_WP_EMAIL=$(git config user.email) @@ -101,6 +101,9 @@ function ee_mod_setup_wordpress() fi fi + # Let's log WordPress username/password/email + echo -e "EE_WP_USER = $EE_WP_USER \nEE_WP_PASS = $EE_WP_PASS \nEE_WP_EMAIL = $EE_WP_EMAIL" &>> $EE_COMMAND_LOG + # Create WordPress tables ee_lib_echo "Setting up WordPress, please wait..." cd /var/www/$EE_DOMAIN/htdocs \