From e39696e4be3573bc2c131ccd2f92a07307e1f4ca Mon Sep 17 00:00:00 2001 From: Steve Manuel Date: Sat, 24 Sep 2016 00:10:41 -0700 Subject: adding Init func to db instead of native init func so that when cms is called as a CLI, it does not create the db file in the current directory erroneously --- cmd/cms/main.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'cmd') diff --git a/cmd/cms/main.go b/cmd/cms/main.go index 5550175..00b4809 100644 --- a/cmd/cms/main.go +++ b/cmd/cms/main.go @@ -4,6 +4,8 @@ import ( "flag" "fmt" "os" + + "github.com/nilslice/cms/system/db" ) var usage = ` @@ -95,6 +97,7 @@ func main() { os.Exit(1) } case "serve", "s": + db.Init() serve() case "": -- cgit v1.2.3