From 78bb1491d8f5d4cc00c33d26cbba67f035d70cd2 Mon Sep 17 00:00:00 2001 From: harshadyeola Date: Thu, 9 Oct 2014 14:37:56 +0530 Subject: [PATCH] http auth default credential update --- src/modules/stack/install/ee_mod_setup_nginx.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/modules/stack/install/ee_mod_setup_nginx.sh b/src/modules/stack/install/ee_mod_setup_nginx.sh index fc3c4b6c..963475fd 100644 --- a/src/modules/stack/install/ee_mod_setup_nginx.sh +++ b/src/modules/stack/install/ee_mod_setup_nginx.sh @@ -96,8 +96,11 @@ function ee_mod_setup_nginx() done fi - # Set easyengine:easyengine as default http authentication + # Generate htpasswd-ee file if [ ! -f /etc/nginx/htpasswd-ee ]; then - printf "easyengine:$(openssl passwd -crypt $ee_random 2> /dev/null)\n" > /etc/nginx/htpasswd-ee 2> /dev/null + # Use same variable name as used in ee_mod_secure_auth function + EE_HTTP_AUTH_USER=easyengine + EE_HTTP_AUTH_PASS=$ee_random + printf "$EE_HTTP_AUTH_USER:$(openssl passwd -crypt $EE_HTTP_AUTH_PASS 2> /dev/null)\n" > /etc/nginx/htpasswd-ee 2> /dev/null fi }