diff --git a/bin/easyengine b/bin/easyengine index 425ab1b2..9d723302 100644 --- a/bin/easyengine +++ b/bin/easyengine @@ -868,7 +868,7 @@ fi } -EasyEngine $@ | tee -ai $EE_COMMAND_LOG +EasyEngine $@ | tee -ai $EE_TEE_LOG # If any command fails its return non-zero exit code [EasyEngine $@] diff --git a/src/lib/ee_lib_stack_packages.sh b/src/lib/ee_lib_stack_packages.sh index 2a726bfd..f17df84d 100644 --- a/src/lib/ee_lib_stack_packages.sh +++ b/src/lib/ee_lib_stack_packages.sh @@ -5,7 +5,7 @@ function ee_lib_stack_packages() local ee_stack_package # Log only single time # ee site create example.com called ee stack install nginx - # So when ee stack install nginx run in sub-shell the value of EE_COMMAND_LOG=/dev/null + # So when ee stack install nginx run in sub-shell the value of EE_TEE_LOG=/dev/null # So in log file all logs written single time only export EE_LOG=false diff --git a/src/lib/ee_lib_variables.sh b/src/lib/ee_lib_variables.sh index 1b5c2153..45a7cb1e 100644 --- a/src/lib/ee_lib_variables.sh +++ b/src/lib/ee_lib_variables.sh @@ -20,14 +20,15 @@ readonly EE_DATE=$(date +%d%b%Y%H%M%S) # Log only single time # ee site create example.com called ee stack install nginx -# So when ee stack install nginx run in sub-shell the value of EE_COMMAND_LOG=/dev/null +# So when ee stack install nginx run in sub-shell the value of EE_TEE_LOG=/dev/null # So in log file all logs written single time only if [ -n "$EE_LOG" ]; then - EE_COMMAND_LOG=/dev/null + EE_TEE_LOG=/dev/null else - EE_COMMAND_LOG=/var/log/easyengine/ee.log + EE_TEE_LOG=/var/log/easyengine/ee.log fi +EE_COMMAND_LOG=/var/log/easyengine/ee.log readonly EE_LOG_DIR=/var/log/easyengine readonly EE_ERROR_LOG=/var/log/easyengine/error.log readonly EE_LINUX_DISTRO=$(lsb_release -i |awk '{print $3}')