From c72bbf41ea1d691df8c0d5c0f771fc9cffb9a173 Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Sun, 1 Nov 2020 15:51:41 -0500 Subject: [PATCH] chore: use helper method --- plugins/repo/repo.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/repo/repo.go b/plugins/repo/repo.go index ce7813cd8..938602077 100644 --- a/plugins/repo/repo.go +++ b/plugins/repo/repo.go @@ -16,8 +16,8 @@ func PurgeCache(appName string) error { return err } - cacheDir := strings.Join([]string{common.MustGetEnv("DOKKU_ROOT"), appName, "cache"}, "/") - cacheHostDir := strings.Join([]string{common.MustGetEnv("DOKKU_HOST_ROOT"), appName, "cache"}, "/") + cacheDir := strings.Join([]string{common.AppRoot(appName), "cache"}, "/") + cacheHostDir := strings.Join([]string{common.AppHostRoot(appName), "cache"}, "/") dokkuGlobalRunArgs := common.MustGetEnv("DOKKU_GLOBAL_RUN_ARGS") image := config.GetWithDefault(appName, "DOKKU_IMAGE", os.Getenv("DOKKU_IMAGE")) if info, _ := os.Stat(cacheDir); info != nil && info.IsDir() {