Don't yell about root because Docker

This commit is contained in:
Neil Alexander 2022-03-11 17:22:36 +00:00 committed by GitHub
parent a84eecc888
commit d43af4216f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -10,11 +10,6 @@ import (
)
func platformSanityChecks() {
// If Dendrite is running as root, that's probably bad.
if syscall.Geteuid() == 0 {
logrus.Warnf("IMPORTANT: Dendrite is currently running as root, this is potentially dangerous!")
}
// Dendrite needs a relatively high number of file descriptors in order
// to function properly, particularly when federating with lots of servers.
// If we run out of file descriptors, we might run into problems accessing