Skip to content

Commit

Permalink
Fix invalid iPXE TLS variables
Browse files Browse the repository at this point in the history
The variables are confused there, breaking, for instance, vmedia TLS.
  • Loading branch information
dtantsur committed Dec 19, 2023
1 parent f5587d1 commit 1ab059e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/tls-common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,11 @@ if [[ ! -f "$IRONIC_VMEDIA_CERT_FILE" ]] && [[ -f "$IRONIC_VMEDIA_KEY_FILE" ]];
fi

if [[ -f "$IPXE_CERT_FILE" ]] && [[ ! -f "$IPXE_KEY_FILE" ]]; then
echo "Missing TLS Certificate key file $IRONIC_IPXE_CERT_FILE"
echo "Missing TLS Certificate key file $IPXE_KEY_FILE"
exit 1
fi
if [[ ! -f "$IPXE_CERT_FILE" ]] && [[ -f "$IRONIC_VMEDIA_KEY_FILE" ]]; then
echo "Missing TLS Certificate file $IRONIC_VMEDIA_CERT_FILE"
if [[ ! -f "$IPXE_CERT_FILE" ]] && [[ -f "$IPXE_KEY_FILE" ]]; then
echo "Missing TLS Certificate file $IPXE_CERT_FILE"
exit 1
fi

Expand Down

0 comments on commit 1ab059e

Please sign in to comment.