Skip to content

Commit

Permalink
home: imp code
Browse files Browse the repository at this point in the history
  • Loading branch information
Mizzick committed Mar 28, 2024
1 parent 06dbcfe commit 806ff9b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/home/home.go
Original file line number Diff line number Diff line change
Expand Up @@ -760,7 +760,8 @@ func writePIDFile(fn string) bool {
}

// initConfigFilename sets up context config file path. This file path can be
// overridden by command-line arguments, or is set to default.
// overridden by command-line arguments, or is set to default. Must only be
// called after initializing the workDir with initWorkingDir.
func initConfigFilename(opts options) {
confPath := opts.confFilename
if confPath == "" {
Expand Down
1 change: 1 addition & 0 deletions internal/home/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,7 @@ func handleServiceCommand(s service.Service, action string, opts options) (err e
if err = initWorkingDir(opts); err != nil {
return fmt.Errorf("failed to init working dir: %w", err)
}

initConfigFilename(opts)

handleServiceInstallCommand(s)
Expand Down

0 comments on commit 806ff9b

Please sign in to comment.