diff --git a/api/edge/callbacks/entrypoint.sh b/api/edge/callbacks/entrypoint.sh index b3a445f1..b9c2d55d 100755 --- a/api/edge/callbacks/entrypoint.sh +++ b/api/edge/callbacks/entrypoint.sh @@ -12,4 +12,8 @@ if [ -z "${VAULT_TOKEN:-}" ]; then echo "[entrypoint] VAULT_TOKEN is not set; expected Vault Agent sink to write a token to ${VAULT_TOKEN_FILE:-/run/vault/token}" >&2 fi -exec "$@" +if [ "$#" -gt 0 ] && [ "${1#-}" != "${1}" ]; then + set -- /app/callbacks "$@" +fi + +exec /app/callbacks "$@"