Skip to content

Commit

Permalink
fix: config watcher now updates whenf ile added to dir (glauth#424)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fusion authored Apr 13, 2024
1 parent 8476506 commit a90f37b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions v2/glauth.go
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,8 @@ func startConfigWatcher() {
isChanged = true
} else if event.Op&fsnotify.Remove == fsnotify.Remove { // vim edit file with rename/remove
isChanged, isRemoved = true, true
} else if event.Op&fsnotify.Create == fsnotify.Create { // only when watching a directory
isChanged = true
}
case err := <-watcher.Errors:
log.Error().Err(err).Msg("watcher error")
Expand Down

0 comments on commit a90f37b

Please sign in to comment.