From 02f2cbf377f82b0084c8d4ec8ed74aa0c1dcff8f Mon Sep 17 00:00:00 2001 From: harshadyeola Date: Fri, 10 Oct 2014 15:27:25 +0530 Subject: [PATCH] http auth default credentials added --- src/modules/stack/install/ee_mod_setup_nginx.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/modules/stack/install/ee_mod_setup_nginx.sh b/src/modules/stack/install/ee_mod_setup_nginx.sh index 963475fd..f2482aa1 100644 --- a/src/modules/stack/install/ee_mod_setup_nginx.sh +++ b/src/modules/stack/install/ee_mod_setup_nginx.sh @@ -101,6 +101,10 @@ function ee_mod_setup_nginx() # Use same variable name as used in ee_mod_secure_auth function EE_HTTP_AUTH_USER=easyengine EE_HTTP_AUTH_PASS=$ee_random + echo + 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 + printf "$EE_HTTP_AUTH_USER:$(openssl passwd -crypt $EE_HTTP_AUTH_PASS 2> /dev/null)\n" > /etc/nginx/htpasswd-ee 2> /dev/null fi }