From 73f9e0a59d1aef6c1d55d706b489603db4ea464c Mon Sep 17 00:00:00 2001 From: Adam Rozman Date: Fri, 14 Jun 2024 14:06:26 +0300 Subject: [PATCH] fix incorrect htpaswd file generation This commit: - removes the unnecessary parts of the htpaswd file generation and clears up the content of the file The reason: - The original command was designed to generate an env variable but the new ironic-image logic expects the content of to be suitable for a htpaswd file this the variable name and the "=" is not needed. Signed-off-by: Adam Rozman --- tools/deploy.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/deploy.sh b/tools/deploy.sh index 3cb749a0b6..cf763062ae 100755 --- a/tools/deploy.sh +++ b/tools/deploy.sh @@ -148,7 +148,7 @@ if [[ "${DEPLOY_BASIC_AUTH}" == "true" ]]; then fi if [[ "${DEPLOY_IRONIC}" == "true" ]]; then - echo "IRONIC_HTPASSWD=$(htpasswd -n -b -B "${IRONIC_USERNAME}" "${IRONIC_PASSWORD}")" > \ + htpasswd -n -b -B "${IRONIC_USERNAME}" "${IRONIC_PASSWORD}" > \ "${TEMP_IRONIC_OVERLAY}/ironic-htpasswd" fi fi