mirror of
https://github.com/mjl-/mox.git
synced 2024-12-26 16:33:47 +03:00
print log line about unprivileged user after having initialized the values that are printed
we currently were logging as if we were starting with uid=0, which wasn't the case.
This commit is contained in:
parent
17dac99830
commit
5b17fcd712
1 changed files with 1 additions and 1 deletions
2
serve.go
2
serve.go
|
@ -186,9 +186,9 @@ requested, other TLS certificates are requested on demand.
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
log.Print("starting as unprivileged user", mlog.Field("user", mox.Conf.Static.User), mlog.Field("uid", mox.Conf.Static.UID), mlog.Field("gid", mox.Conf.Static.GID), mlog.Field("pid", os.Getpid()))
|
|
||||||
mox.RestorePassedFiles()
|
mox.RestorePassedFiles()
|
||||||
mox.MustLoadConfig(true, checkACMEHosts)
|
mox.MustLoadConfig(true, checkACMEHosts)
|
||||||
|
log.Print("starting as unprivileged user", mlog.Field("user", mox.Conf.Static.User), mlog.Field("uid", mox.Conf.Static.UID), mlog.Field("gid", mox.Conf.Static.GID), mlog.Field("pid", os.Getpid()))
|
||||||
}
|
}
|
||||||
|
|
||||||
syscall.Umask(syscall.Umask(007) | 007)
|
syscall.Umask(syscall.Umask(007) | 007)
|
||||||
|
|
Loading…
Reference in a new issue