From d05e89032b9a1e528a80f0bb8268f00c348c119e Mon Sep 17 00:00:00 2001 From: Mahnoor Asghar Date: Wed, 8 May 2024 09:04:58 -0400 Subject: [PATCH] Read ironic htpasswd from file or env variable Signed-off-by: Mahnoor Asghar --- scripts/auth-common.sh | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/scripts/auth-common.sh b/scripts/auth-common.sh index b5bb178a0..90cea4c5b 100644 --- a/scripts/auth-common.sh +++ b/scripts/auth-common.sh @@ -11,21 +11,11 @@ else export IRONIC_EXPOSE_JSON_RPC="${IRONIC_EXPOSE_JSON_RPC:-false}" fi -set +x IRONIC_HTPASSWD_FILE=/etc/ironic/htpasswd -if [[ -f "/auth/ironic/username" ]]; then - IRONIC_HTPASSWD_USERNAME=$(