Skip to content

Commit

Permalink
Fix failing to install a systemd service
Browse files Browse the repository at this point in the history
Args of struct should be specified with args.
  • Loading branch information
nus committed Sep 3, 2016
1 parent f54dafb commit 7fc9764
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions daemon_linux_systemd.go
Expand Up @@ -81,16 +81,16 @@ func (linux *systemDRecord) Install(args ...string) (string, error) {
return installAction + failed, err
}

path := append([]string{execPatch}, args...)
if err := templ.Execute(
file,
&struct {
Name, Description, Dependencies, Path string
Name, Description, Dependencies, Path, Args string
}{
linux.name,
linux.description,
strings.Join(linux.dependencies, " "),
strings.Join(path, " "),
execPatch,
strings.Join(args, " "),
},
); err != nil {
return installAction + failed, err
Expand Down

0 comments on commit 7fc9764

Please sign in to comment.