google / timesketch

Collaborative forensic timeline analysis
Apache License 2.0
2.52k stars 577 forks source link

Fix tsctl on a prod deployment #3088

Closed jkppr closed 1 month ago

jkppr commented 1 month ago

The command tsctl info checks for the version of certain tools used for the deployment. However, packages like node, npm and yarn are only used in the development container and not in the prod deployments. Hence running the command did crash when it did not find the binaries to check the version.

This PR adds a try/catch to those checks and returns the necessary information to the user.

Closing issues

closes #3080