localkube add ROOT permission check.
parent
35d685aec6
commit
8b5ffff2d9
|
@ -46,7 +46,10 @@ func StartLocalkube() {
|
|||
os.Exit(0)
|
||||
}
|
||||
|
||||
// TODO: Require root
|
||||
if os.Geteuid() != 0 {
|
||||
fmt.Println("localkube should run as root!")
|
||||
os.Exit(1)
|
||||
}
|
||||
|
||||
SetupServer(Server)
|
||||
Server.StartAll()
|
||||
|
|
Loading…
Reference in New Issue