Browse Source

Fix log

bugfixes
Mitesh Shah 10 years ago
parent
commit
88e5ee4416
  1. 6
      src/lib/ee_lib_stack_packages.sh
  2. 10
      src/lib/ee_lib_variables.sh

6
src/lib/ee_lib_stack_packages.sh

@ -11,6 +11,12 @@ function ee_lib_stack_packages()
if [ "$EE_PACKAGE_NAME" != "" ]; then
# Export EE_DISPLAY variable to Display ee http auth after site creation.
export EE_DISPLAY=false
# Log only single time
# ee site create example.com called ee stack install nginx
# So in log file all logs written twice
export EE_LOG=false
# The following command creates its own sub-shell
# and our ee_lib_error function only exit from that sub-shell
# so we need to exit from parent shell also

10
src/lib/ee_lib_variables.sh

@ -18,7 +18,15 @@ readonly EE_VIMBADMIN_VERSION='3.0.10'
# EasyEngine Date variable for backup
readonly EE_DATE=$(date +%d%b%Y%H%M%S)
EE_COMMAND_LOG=/var/log/easyengine/ee.log
# Log only single time
# ee site create example.com called ee stack install nginx
# So in log file all logs written twice
if [ -n "$EE_LOG" ]; then
EE_COMMAND_LOG=/dev/null
else
EE_COMMAND_LOG=/var/log/easyengine/ee.log
fi
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}')

Loading…
Cancel
Save