Skip to content

Commit d7269dc

Browse files
authored
Merge pull request #316 from newrelic/kang-makes/honor-storer-envvar/NR-302384
Honor storer envvar (NR-302384)
2 parents 8d96a7b + 57d0c5d commit d7269dc

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

persist/storer.go

+6
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,12 @@ func TmpPath(tempDir, integrationName string) string {
9595
// "nr-integrations" as a subfolder, Linux example: "/tmp/nr-integrations"
9696
func tmpIntegrationDir(tempDir string) string {
9797
dir := tempDir
98+
99+
legacyCachePath := os.Getenv("NRIA_CACHE_PATH")
100+
if legacyCachePath != "" {
101+
tempDir = legacyCachePath
102+
}
103+
98104
if tempDir == "" {
99105
tempDir = os.TempDir()
100106
dir = filepath.Join(tempDir, integrationsDir)

0 commit comments

Comments
 (0)