Commit 3e225f8a authored by Maarten de Waard's avatar Maarten de Waard 🤘🏻

Merge branch '4-find-a-way-to-keep-etc-ssl-certs-ca-certificate-up-to-date' into 'master'

Copy ssl certificates from builder to initrd

Closes #4

See merge request !6
parents c6c0c1c6 4e4f548e
......@@ -3,7 +3,7 @@
set -e
# Directory where this script is located.
scriptDir=$(dirname -- "$(readlink -f -- "$BASH_SOURCE")")
scriptDir=$(dirname -- "$(readlink -f -- "$BASH_SOURCE")")
initrdDir="${scriptDir}/crypt-initrd-extra-files"
# Copy api server binary to initrd build dir.
......@@ -24,3 +24,8 @@ versionInfoFile="${initrdDir}/etc/cryptops-client/version.txt"
cd "${scriptDir}/cryptops/cryptops-client"
git rev-parse --abbrev-ref HEAD > "${versionInfoFile}"
git log -1 >> "${versionInfoFile}"
# Copy ssl certificates from builder to initrd.
certsDir="${initrdDir}/etc/ssl/certs"
mkdir -p "${certsDir}"
cp "/etc/ssl/certs/ca-certificates.crt" "${certsDir}/"
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment