Modify Check Root Startup

This commit is contained in:
Emanuel Russo
2019-02-12 10:34:42 +01:00
committed by GitHub
parent b24ac284ac
commit 16cd06e330
+2 -2
View File
@@ -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)
}