cmd/derper: remove default for non-root users
Signed-off-by: julianknodt <julianknodt@gmail.com>pull/2433/head
parent
9d4eddcef8
commit
b67a3007d5
|
@ -61,7 +61,7 @@ func loadConfig() config {
|
||||||
if os.Getuid() == 0 {
|
if os.Getuid() == 0 {
|
||||||
*configPath = "/var/lib/derper/derper.key"
|
*configPath = "/var/lib/derper/derper.key"
|
||||||
} else {
|
} else {
|
||||||
*configPath = "derper.key"
|
log.Fatalf("derper: -c <config path> not specified")
|
||||||
}
|
}
|
||||||
log.Printf("no config path specified; using %s", *configPath)
|
log.Printf("no config path specified; using %s", *configPath)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue