Browse Source

Improved log writting during ee site migrate

bugfixes
gau1991 10 years ago
parent
commit
8509b45144
  1. 9
      bin/easyengine
  2. 4
      src/lib/ee_lib_stack_packages.sh

9
bin/easyengine

@ -729,8 +729,13 @@ elif [ "$EE_FIRST" = "site" ]; then
elif [ "$EE_SECOND" = "migrate" ]; then
export EE_MIGRATE="True"
export EE_TEE_LOG="false"
# 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_TEE_LOG=/dev/null
# So in log file all logs written single time only, to do so set EE_LOG=false
export EE_LOG=false
# Configure variables
EE_DOMAIN_CHECK=$EE_THIRD
ee_lib_check_domain

4
src/lib/ee_lib_stack_packages.sh

@ -6,7 +6,7 @@ function ee_lib_stack_packages()
# 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_TEE_LOG=/dev/null
# So in log file all logs written single time only
# So in log file all logs written single time only, to do so set EE_LOG=false
export EE_LOG=false
for ee_stack_package in $@;do
@ -48,7 +48,7 @@ function ee_lib_stack_packages()
# and our ee_lib_error function only exit from that sub-shell
# so we need to exit from parent shell also
ee stack install postfix || exit $?
fi
fi
fi
done
}

Loading…
Cancel
Save