From 16cd06e330c75c48852954a3925a46386bf709fa Mon Sep 17 00:00:00 2001 From: Emanuel Russo Date: Tue, 12 Feb 2019 10:34:42 +0100 Subject: [PATCH] Modify Check Root Startup --- main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index 68c65b7..b839694 100644 --- a/main.go +++ b/main.go @@ -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) }