Skip to content

Commit

Permalink
fix incorrect htpaswd file generation
Browse files Browse the repository at this point in the history
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 <adam.rozman@est.tech>
  • Loading branch information
Rozzii committed Jun 14, 2024
1 parent 536b43c commit 73f9e0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 73f9e0a

Please sign in to comment.