Skip to content

Commit

Permalink
Fix regression in cert file generation (#178)
Browse files Browse the repository at this point in the history
  • Loading branch information
Joel Wright authored Nov 2, 2023
1 parent 0af88ff commit 4e07b36
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions startup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ VESPA_SECRETS_LOCATION="${VESPA_SECRETS_LOCATION:-/secrets}"

# base64 decode key/cert supplied in env vars
if [ -n "${VESPA_CERT}" ]; then
echo "${VESPA_CERT}" openssl base64 -A -d > "${VESPA_SECRETS_LOCATION}/cert.pem"
echo "${VESPA_CERT}" | openssl base64 -A -d > "${VESPA_SECRETS_LOCATION}/cert.pem"
else
echo "No Vespa certificate supplied, skipping file creation"
fi

if [ -n "${VESPA_KEY}" ]; then
echo "${VESPA_KEY}" openssl base64 -A -d > "${VESPA_SECRETS_LOCATION}/key.pem"
echo "${VESPA_KEY}" | openssl base64 -A -d > "${VESPA_SECRETS_LOCATION}/key.pem"
else
echo "No Vespa key supplied, skipping file creation"
fi
Expand Down

0 comments on commit 4e07b36

Please sign in to comment.