From 5a18de0e92d07339885d4adfeea265adc11ae086 Mon Sep 17 00:00:00 2001 From: tzvonimir Date: Tue, 9 Apr 2024 00:20:58 +0200 Subject: [PATCH] Add missing shell configuration --- cmd/cmd.go | 55 +++++++++++++++++++++++++++++------------------------- 1 file changed, 30 insertions(+), 25 deletions(-) diff --git a/cmd/cmd.go b/cmd/cmd.go index a83a0b3..8fc464d 100644 --- a/cmd/cmd.go +++ b/cmd/cmd.go @@ -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) @@ -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) @@ -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) @@ -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) @@ -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)