Create install directory when creating the logs directory

This commit is contained in:
Matthew Penner 2020-08-24 15:10:57 -06:00
parent b3a2a76f25
commit 459c370229

View File

@ -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)
}