Skip to content

Commit

Permalink
Merge pull request #316 from newrelic/kang-makes/honor-storer-envvar/N…
Browse files Browse the repository at this point in the history
…R-302384

Honor storer envvar (NR-302384)
  • Loading branch information
kang-makes authored Oct 1, 2024
2 parents 8d96a7b + 57d0c5d commit d7269dc
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions persist/storer.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,12 @@ func TmpPath(tempDir, integrationName string) string {
// "nr-integrations" as a subfolder, Linux example: "/tmp/nr-integrations"
func tmpIntegrationDir(tempDir string) string {
dir := tempDir

legacyCachePath := os.Getenv("NRIA_CACHE_PATH")
if legacyCachePath != "" {
tempDir = legacyCachePath
}

if tempDir == "" {
tempDir = os.TempDir()
dir = filepath.Join(tempDir, integrationsDir)
Expand Down

0 comments on commit d7269dc

Please sign in to comment.