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:
Zach Wasserman
2022-03-23 15:27:52 -07:00
committed by GitHub
parent c4946335ff
commit d0630b00e1
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -0,0 +1 @@
* Fix `orbit shell` command to successfully run when Orbit is already running as daemon.
+1 -1
View File
@@ -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()),
)