mirror of
https://github.com/gl-inet/glkvm-cloud.git
synced 2026-09-18 00:25:10 +00:00
Modify Check Root Startup
This commit is contained in:
@@ -60,8 +60,8 @@ var httpSessions = make(map[string]*HttpSession)
|
||||
func main() {
|
||||
cfg := parseConfig()
|
||||
|
||||
if !checkUser() {
|
||||
log.Println("Operation not permitted")
|
||||
if (!checkUser() && cfg.username == "" && cfg.password =="") {
|
||||
log.Println("Operation not permitted. Please start as root or define Username and Password in configuration file")
|
||||
os.Exit(1)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user