Merge pull request #2486 from langyxxl/localkube-add-root-check
localkube add ROOT permission checkpull/2500/head
commit
c76b210393
|
@ -46,7 +46,10 @@ func StartLocalkube() {
|
||||||
os.Exit(0)
|
os.Exit(0)
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: Require root
|
if os.Geteuid() != 0 {
|
||||||
|
fmt.Println("localkube should run as root!")
|
||||||
|
os.Exit(1)
|
||||||
|
}
|
||||||
|
|
||||||
SetupServer(Server)
|
SetupServer(Server)
|
||||||
Server.StartAll()
|
Server.StartAll()
|
||||||
|
|
Loading…
Reference in New Issue