Skip to content

Commit

Permalink
fix: resolves path too long error caused by the wrong variable used (#10
Browse files Browse the repository at this point in the history
)

Signed-off-by: Nathan Klick <nathan@swirldslabs.com>
  • Loading branch information
nathanklick authored Sep 13, 2024
1 parent 6c2f2d2 commit a8bd7ad
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions apache-httpd-oidc/entrypoint-helper.sh
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,9 @@ function execute_gcs_fuse_driver {

if [[ -n "${GCS_FUSE_JWT_CREDENTIALS}" ]]; then
mkdir -p "${GCS_FUSE_RUN_DIRECTORY}" >/dev/null 2>&1 || return "${?}"
tee "${GCS_FUSE_JWT_CREDENTIALS}/adc.json" <<<"${GCS_FUSE_JWT_CREDENTIALS}" >/dev/null || return "${?}"
log.notice "execute_gcs_fuse_driver(): Credentials loaded from supplied JWT variable [${GCS_FUSE_JWT_CREDENTIALS}/adc.json]"
args+=("--key-file" "${GCS_FUSE_JWT_CREDENTIALS}/adc.json")
tee "${GCS_FUSE_RUN_DIRECTORY}/adc.json" <<<"${GCS_FUSE_JWT_CREDENTIALS}" >/dev/null || return "${?}"
log.notice "execute_gcs_fuse_driver(): Credentials loaded from supplied JWT variable [${GCS_FUSE_RUN_DIRECTORY}/adc.json]"
args+=("--key-file" "${GCS_FUSE_RUN_DIRECTORY}/adc.json")
else
log.notice "execute_gcs_fuse_driver(): Credentials loaded from supplied GOOGLE_APPLICATION_CREDENTIALS variable [${GOOGLE_APPLICATION_CREDENTIALS}]"
args+=("--key-file" "${GOOGLE_APPLICATION_CREDENTIALS}")
Expand Down

0 comments on commit a8bd7ad

Please sign in to comment.