Skip to content

Commit e7f387e

Browse files
authored
fix: precreate keystore parent path (#12)
1 parent d2ae166 commit e7f387e

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

ignition/scripts/prepare-gan-certificates.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ function populateGanKeystore() {
3838
info "Populating GAN Client Keystore -> ${keystore_path}"
3939

4040
# Replace any existing GAN client keystore with the updated one from the mounted secret
41+
mkdir -v -p "${keystore_parent_path}"
4142
rm -v -f "${keystore_path}"
4243
cp -v "${GAN_SECRETS_DIR}/keystore.p12" "${keystore_path}"
4344

ignition/scripts/prepare-tls-certificates.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ function populateWebKeystore() {
2828
info "Populating Web Server TLS Keystore -> ${keystore_path}"
2929

3030
# Replace any existing TLS keystore with the updated one from the mounted secret
31+
mkdir -v -p "${keystore_parent_path}"
3132
rm -v -f "${keystore_path}"
3233
cp -v "${WEB_TLS_SECRETS_DIR}/keystore.p12" "${keystore_path}"
3334

0 commit comments

Comments
 (0)