From 07a75672b2a8f693d8fd4b78990899403c934960 Mon Sep 17 00:00:00 2001 From: gau1991 Date: Wed, 1 Oct 2014 12:56:05 +0530 Subject: [PATCH] HTTP auth details now hidden from screen --- bin/update | 8 +++++++- src/modules/secure/ee_mod_secure_auth.sh | 4 ++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/bin/update b/bin/update index 5136b981..709b291a 100644 --- a/bin/update +++ b/bin/update @@ -427,7 +427,13 @@ if [[ $EE_CURRENT_VERSION < $EE_LATEST_VERSION ]]; then EE_CURRENT_VERSION="2.1.0" fi - # if [[ $EE_CURRENT_VERSION = 2.1.0 ]]; then + if [[ $EE_CURRENT_VERSION = 2.1.0 ]]; then + + + # Update EasyEngine current version + EE_CURRENT_VERSION="2.1.0" + fi + # if [[ $EE_CURRENT_VERSION = 2.2.0 ]]; then # fi fi diff --git a/src/modules/secure/ee_mod_secure_auth.sh b/src/modules/secure/ee_mod_secure_auth.sh index 1440eae6..daffcbad 100644 --- a/src/modules/secure/ee_mod_secure_auth.sh +++ b/src/modules/secure/ee_mod_secure_auth.sh @@ -22,8 +22,8 @@ function ee_mod_secure_auth() # Add HTTP authentication details echo - ee_lib_echo_info "HTTP authentication username: $ee_http_auth_user" - ee_lib_echo_info "HTTP authentication password: $ee_http_auth_pass" + ee_lib_echo "HTTP authentication username: $ee_http_auth_user" &>> $EE_COMMAND_LOG + ee_lib_echo "HTTP authentication password: $ee_http_auth_pass" &>> $EE_COMMAND_LOG # Generate htpasswd-ee file printf "$ee_http_auth_user:$(openssl passwd -crypt $ee_http_auth_pass 2> /dev/null)\n" > /etc/nginx/htpasswd-ee 2> /dev/null