diff options
Diffstat (limited to 'main.go')
-rw-r--r-- | main.go | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -2,6 +2,8 @@ package main import ( "log" + "os" + "path/filepath" "text/template" ) @@ -11,6 +13,10 @@ var templates *template.Template func main() { log.Printf("Started Ceres recipe server.\n") config = GetRuntimeConfig() + err := os.Mkdir(filepath.Join(config.Data, "recipes"), 0750) + if err != nil && !os.IsExist(err) { + log.Fatal(err) + } templates = setupTemplates() runServer() } |