mirror of
https://github.com/empayre/fleet.git
synced 2024-11-06 08:55:24 +00:00
Allow Orbit shell to run while daemon is running (#4772)
Use a different data path so that the new osquery instance doesn't try to use the same pidfile, db file, extension socket, etc. #4769
This commit is contained in:
parent
c4946335ff
commit
d0630b00e1
1
orbit/changes/fix-shell
Normal file
1
orbit/changes/fix-shell
Normal file
@ -0,0 +1 @@
|
||||
* Fix `orbit shell` command to successfully run when Orbit is already running as daemon.
|
@ -80,7 +80,7 @@ var shellCommand = &cli.Command{
|
||||
r, _ := osquery.NewRunner(
|
||||
osquerydPath,
|
||||
osquery.WithShell(),
|
||||
osquery.WithDataPath(c.String("root-dir")),
|
||||
osquery.WithDataPath(filepath.Join(c.String("root-dir"), "shell")),
|
||||
// Handle additional args after --
|
||||
osquery.WithFlags(c.Args().Slice()),
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user