Просмотр исходного кода

Fix default template path in installer

Kailash Nadh 5 лет назад
Родитель
Сommit
ac2145de89
1 измененных файлов с 1 добавлено и 2 удалено
  1. 1 2
      install.go

+ 1 - 2
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.