Skip to content

Commit

Permalink
honor legacy storer path envvar
Browse files Browse the repository at this point in the history
  • Loading branch information
kang-makes committed Oct 1, 2024
1 parent 8d96a7b commit 57d0c5d
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 57d0c5d

Please sign in to comment.