From ac2145de8960e76b94892cc1ff168ac202c760b5 Mon Sep 17 00:00:00 2001 From: Kailash Nadh Date: Sun, 8 Mar 2020 11:04:34 +0530 Subject: [PATCH] Fix default template path in installer --- install.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/install.go b/install.go index ddebc23..b451827 100644 --- a/install.go +++ b/install.go @@ -96,7 +96,7 @@ func install(db *sqlx.DB, fs stuffbin.FileSystem, prompt bool) { } // Default template. - tplBody, err := ioutil.ReadFile("email-templates/default.tpl") + tplBody, err := ioutil.ReadFile("static/email-templates/default.tpl") if err != nil { tplBody = []byte(tplTag) } @@ -134,7 +134,6 @@ func install(db *sqlx.DB, fs stuffbin.FileSystem, prompt bool) { lo.Printf("Setup complete") lo.Printf(`Run the program and access the dashboard at %s`, ko.MustString("app.address")) - } // installMigrate executes the SQL schema and creates the necessary tables and types.