admin: Don't consider .locked file as problematic

This commit is contained in:
nemunaire 2023-05-05 16:08:31 +02:00
parent 6407970dfa
commit ac64db277a

View File

@ -56,6 +56,10 @@ func getHealth(pathname string) (ret []healthFileReport) {
if d.IsDir() && d.Name() != ".tmp" && d.Mode()&os.ModeSymlink == 0 {
ret = append(ret, getHealth(p)...)
} else if !d.IsDir() && d.Mode()&os.ModeSymlink == 0 && time.Since(d.ModTime()) > 2*time.Second {
if d.Name() == ".locked" {
continue
}
teamDir := strings.TrimPrefix(pathname, TimestampCheck)
idteam, _ := pki.GetAssociation(path.Join(TeamsDir, teamDir))
ret = append(ret, healthFileReport{