Skip to content

Commit

Permalink
Add missing shell configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
Tzvonimir committed Apr 8, 2024
1 parent 07ee255 commit 5a18de0
Showing 1 changed file with 30 additions and 25 deletions.
55 changes: 30 additions & 25 deletions cmd/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -167,11 +167,12 @@ func reload(_ *cobra.Command, _ []string) error {
user.ConfigureUserSystemInfo(user.Conf)

daemonConf := &daemon.Config{
ExePath: user.Conf.ExePath,
HomeDir: user.Conf.HomeDir,
IsRoot: user.Conf.IsRoot,
Os: config.OSType(user.Conf.Os),
SudoExecUser: user.Conf.User,
ExePath: user.Conf.ExePath,
HomeDir: user.Conf.HomeDir,
IsRoot: user.Conf.IsRoot,
Os: config.OSType(user.Conf.Os),
SudoExecUser: user.Conf.User,
ShellLocation: user.Conf.ShellLocation,
}
dmn := daemon.NewDaemon(daemonConf, logging.Log)

Expand All @@ -189,11 +190,12 @@ func start(_ *cobra.Command, _ []string) error {
user.ConfigureUserSystemInfo(user.Conf)

daemonConf := &daemon.Config{
ExePath: user.Conf.ExePath,
HomeDir: user.Conf.HomeDir,
IsRoot: user.Conf.IsRoot,
Os: config.OSType(user.Conf.Os),
SudoExecUser: user.Conf.User,
ExePath: user.Conf.ExePath,
HomeDir: user.Conf.HomeDir,
IsRoot: user.Conf.IsRoot,
Os: config.OSType(user.Conf.Os),
SudoExecUser: user.Conf.User,
ShellLocation: user.Conf.ShellLocation,
}
dmn := daemon.NewDaemon(daemonConf, logging.Log)

Expand All @@ -211,11 +213,12 @@ func stop(_ *cobra.Command, _ []string) error {
user.ConfigureUserSystemInfo(user.Conf)

daemonConf := &daemon.Config{
ExePath: user.Conf.ExePath,
HomeDir: user.Conf.HomeDir,
IsRoot: user.Conf.IsRoot,
Os: config.OSType(user.Conf.Os),
SudoExecUser: user.Conf.User,
ExePath: user.Conf.ExePath,
HomeDir: user.Conf.HomeDir,
IsRoot: user.Conf.IsRoot,
Os: config.OSType(user.Conf.Os),
SudoExecUser: user.Conf.User,
ShellLocation: user.Conf.ShellLocation,
}
dmn := daemon.NewDaemon(daemonConf, logging.Log)

Expand All @@ -233,11 +236,12 @@ func install(_ *cobra.Command, _ []string) error {
user.ConfigureUserSystemInfo(user.Conf)

daemonConf := &daemon.Config{
ExePath: user.Conf.ExePath,
HomeDir: user.Conf.HomeDir,
IsRoot: user.Conf.IsRoot,
Os: config.OSType(user.Conf.Os),
SudoExecUser: user.Conf.User,
ExePath: user.Conf.ExePath,
HomeDir: user.Conf.HomeDir,
IsRoot: user.Conf.IsRoot,
Os: config.OSType(user.Conf.Os),
SudoExecUser: user.Conf.User,
ShellLocation: user.Conf.ShellLocation,
}
dmn := daemon.NewDaemon(daemonConf, logging.Log)

Expand Down Expand Up @@ -282,11 +286,12 @@ func uninstall(_ *cobra.Command, _ []string) error {
user.ConfigureUserSystemInfo(user.Conf)

daemonConf := &daemon.Config{
ExePath: user.Conf.ExePath,
HomeDir: user.Conf.HomeDir,
IsRoot: user.Conf.IsRoot,
Os: config.OSType(user.Conf.Os),
SudoExecUser: user.Conf.User,
ExePath: user.Conf.ExePath,
HomeDir: user.Conf.HomeDir,
IsRoot: user.Conf.IsRoot,
Os: config.OSType(user.Conf.Os),
SudoExecUser: user.Conf.User,
ShellLocation: user.Conf.ShellLocation,
}
dmn := daemon.NewDaemon(daemonConf, logging.Log)

Expand Down

0 comments on commit 5a18de0

Please sign in to comment.