From 11e5b7d6cd0741beb2f1ef226f6c3fbf4b14817f Mon Sep 17 00:00:00 2001 From: Nathan Klick Date: Thu, 12 Sep 2024 22:15:33 -0500 Subject: [PATCH] fix: resolves path too long error caused by the wrong variable used Signed-off-by: Nathan Klick --- apache-httpd-oidc/entrypoint-helper.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apache-httpd-oidc/entrypoint-helper.sh b/apache-httpd-oidc/entrypoint-helper.sh index 733126f..40b1395 100755 --- a/apache-httpd-oidc/entrypoint-helper.sh +++ b/apache-httpd-oidc/entrypoint-helper.sh @@ -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}")