Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion rhtap/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,12 @@ prepare-registry-user-pass() {
}

function addRootCert() {
if [ ! -z "$CUSTOM_ROOT_CA" ]; then
if [ -n "${CUSTOM_ROOT_CA:-}" ]; then
echo "Using provided CA bundle"
echo "$CUSTOM_ROOT_CA" > /etc/pki/ca-trust/source/anchors/ca-bundle.crt
update-ca-trust
else
echo "Custom root CA variable is not set. Make sure CA trust is established"
fi
}

Expand Down