fix: don't remove log dir on startup

This commit is contained in:
James Houlahan
2020-06-05 10:48:34 +02:00
parent 45e99caa23
commit 928fa93765
2 changed files with 2 additions and 0 deletions

View File

@ -110,6 +110,7 @@ func (c *Config) ClearOldData() error {
fileName := filepath.Base(filePath)
return (fileName != c.cacheVersion &&
!logFileRgx.MatchString(fileName) &&
filePath != c.GetLogDir() &&
filePath != c.GetTLSCertPath() &&
filePath != c.GetTLSKeyPath() &&
filePath != c.GetEventsPath() &&