From 459c3702294d8bc0a2510df7ad1ae04d2ab218f0 Mon Sep 17 00:00:00 2001 From: Matthew Penner Date: Mon, 24 Aug 2020 15:10:57 -0600 Subject: [PATCH] Create install directory when creating the logs directory --- cmd/root.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/root.go b/cmd/root.go index 1fcd9fa..ea40768 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -337,7 +337,7 @@ func Execute() error { // Configures the global logger for Zap so that we can call it from any location // in the code without having to pass around a logger instance. func configureLogging(logDir string, debug bool) error { - if err := os.MkdirAll(config.Get().System.LogDirectory, 0700); err != nil { + if err := os.MkdirAll(path.Join(config.Get().System.LogDirectory, "/install"), 0700); err != nil { return errors.WithStack(err) }