1
0
Fork 0
mirror of https://github.com/Luzifer/nginx-sso.git synced 2025-04-17 12:41:51 +00:00

fix module init on SIGHUP

This commit is contained in:
nyanloutre 2020-04-08 00:58:05 +02:00
parent de9bb6e23a
commit 62415aa45e

View file

@ -144,9 +144,10 @@ func main() {
case syscall.SIGHUP:
if yamlSource, err = loadConfiguration(); err != nil {
log.WithError(err).Error("Unable to reload configuration")
}
if err = initializeModules(yamlSource); err != nil {
log.WithError(err).Fatal("Unable to initialize modules")
} else {
if err = initializeModules(yamlSource); err != nil {
log.WithError(err).Error("Unable to initialize modules")
}
}
default: