From 18bb22c8f4d3e3135f18861f54de6dcb00a41e83 Mon Sep 17 00:00:00 2001 From: Evan Langlais Date: Tue, 2 Apr 2019 12:41:21 -0400 Subject: [PATCH] Adding root path back to test if service will run with permission --- gateway.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gateway.go b/gateway.go index 76958bc..82b657e 100644 --- a/gateway.go +++ b/gateway.go @@ -45,7 +45,7 @@ func main() { } func dbConnect() { - sqlConf, err := ioutil.ReadFile(".mysql_goconf") // Read the db config file + sqlConf, err := ioutil.ReadFile("/root/.mysql_goconf") // Read the db config file if err != nil { fmt.Printf("Error reading MySQL config file: %v\n", err) os.Exit(1) // If we can't connect to the database there's not much point in continuing