mirror of
https://github.com/fleetdm/fleet
synced 2026-05-19 06:58:30 +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
2 changed files with 2 additions and 1 deletions
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 a new issue