Browse Source

Added in logs file

old-stable
Mitesh Shah 10 years ago
parent
commit
d9c22c8a0f
  1. 7
      src/modules/site/create/ee_mod_setup_wordpress.sh

7
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) EE_WP_USER=$($EE_CONFIG_GET wordpress.user)
if [[ $EE_WP_USER = "" ]]; then if [[ $EE_WP_USER = "" ]]; then
git config user.name &>> $EE_COMMAND_LOG git config user.name &>> /dev/null
if [ $? -eq 0 ]; then if [ $? -eq 0 ]; then
# Set WordPress username from git config user.name # Set WordPress username from git config user.name
EE_WP_USER=$(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) EE_WP_EMAIL=$($EE_CONFIG_GET wordpress.email)
if [[ $EE_WP_EMAIL = "" ]]; then if [[ $EE_WP_EMAIL = "" ]]; then
git config user.email &>> $EE_COMMAND_LOG git config user.email &>> /dev/null
if [ $? -eq 0 ]; then if [ $? -eq 0 ]; then
# Set WordPress email from git config user.email # Set WordPress email from git config user.email
EE_WP_EMAIL=$(git config user.email) EE_WP_EMAIL=$(git config user.email)
@ -101,6 +101,9 @@ function ee_mod_setup_wordpress()
fi fi
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 # Create WordPress tables
ee_lib_echo "Setting up WordPress, please wait..." ee_lib_echo "Setting up WordPress, please wait..."
cd /var/www/$EE_DOMAIN/htdocs \ cd /var/www/$EE_DOMAIN/htdocs \

Loading…
Cancel
Save