mirror of
https://github.com/openfaas/faasd.git
synced 2025-06-18 12:06:36 +00:00
Add use of template to Install command
The template name wasnt used, so the command gave an error saying that no template was used. Signed-off-by: Alistair Hey <alistair@heyal.co.uk>
This commit is contained in:
@ -66,7 +66,7 @@ func DaemonReload() error {
|
||||
|
||||
func InstallUnit(name string) error {
|
||||
tmplName := "./hack/" + name + ".service"
|
||||
tmpl, err := template.ParseFiles()
|
||||
tmpl, err := template.ParseFiles(tmplName)
|
||||
|
||||
if err != nil {
|
||||
return fmt.Errorf("error loading template %s, error %s", tmplName, err)
|
||||
|
Reference in New Issue
Block a user