From 5728e4a74a2993f94f364dddcaa849d1d938b164 Mon Sep 17 00:00:00 2001 From: harshadyeola Date: Fri, 10 Oct 2014 14:50:44 +0530 Subject: [PATCH] added comments --- bin/easyengine | 1 + src/modules/site/ee_mod_site_log.sh | 2 ++ 2 files changed, 3 insertions(+) diff --git a/bin/easyengine b/bin/easyengine index ffb6ed0d..02806925 100644 --- a/bin/easyengine +++ b/bin/easyengine @@ -615,6 +615,7 @@ elif [ "$EE_FIRST" = "site" ]; then # Setup WordPress if [ "$EE_SITE_CREATE_OPTION" = "--wp" ] || [ "$EE_SITE_CREATE_OPTION" = "--wpsubdomain" ] || [ "$EE_SITE_CREATE_OPTION" = "--wpsubdir" ]; then if [ "$EE_SITE_CURRENT_OPTION" = "MYSQL" ]; then + # Sets EE_DB_NAME, EE_DB_USER, EE_DB_PASS variables, so that same database can be used while updating MYSQL site to any WordPress site EE_DB_NAME=$(grep DB_NAME $(grep root /etc/nginx/sites-available/$EE_DOMAIN | awk '{ print $2 }' | sed 's/;//g' | sed "s'htdocs'backup/htdocs/$EE_DATE/ee-config.php'" 2> /dev/null) | cut -d"'" -f4) EE_DB_USER=$(grep DB_USER $(grep root /etc/nginx/sites-available/$EE_DOMAIN | awk '{ print $2 }' | sed 's/;//g' | sed "s'htdocs'backup/htdocs/$EE_DATE/ee-config.php'" 2> /dev/null) | cut -d"'" -f4) EE_DB_PASS=$(grep DB_PASSWORD $(grep root /etc/nginx/sites-available/$EE_DOMAIN | awk '{ print $2 }' | sed 's/;//g' | sed "s'htdocs'backup/htdocs/$EE_DATE/ee-config.php'" 2> /dev/null) | cut -d"'" -f4) diff --git a/src/modules/site/ee_mod_site_log.sh b/src/modules/site/ee_mod_site_log.sh index 7ab0558f..95cf7a62 100644 --- a/src/modules/site/ee_mod_site_log.sh +++ b/src/modules/site/ee_mod_site_log.sh @@ -2,6 +2,8 @@ function ee_mod_site_log() { + # Sets ee_log_path to empty, so that it should not use its previous values + local ee_log_path="" # Check if domain name passed if [ $# -eq 0 ]; then for ee_domain_name in $(ls /etc/nginx/sites-available/*); do