tacticalrmm
tacticalrmm copied to clipboard
Mac installer needs an absolute path so that it can be run from other RMMs or users
Server Info (please complete the following information):
- OS: MacOS Agent
- Browser: ANY
- RMM Version: v0.16.5
Installation Method:
- [ ] Standard
Agent Info (please complete the following information): v2.5.0 any OS using the console
Describe the bug
The Mac installer command assumes the $PWD will have write access. This is not true in all cases. This should be amended to put the installer somewhere like /tmp
or another directory it can be modified and run from.
This:
curl -L -o tacticalagent-v2.5.0-darwin-arm64 'https://agents.tacticalrmm.com/api/v2/agents/?version=2.5.0&arch=arm64&token=yaddataddayadda&plat=darwin&api=api.mydomain.com' && chmod +x tacticalagent-v2.5.0-darwin-arm64 && sudo ./tacticalagent-v2.5.0-darwin-arm64 -m install --api https://api.mydomain.com --client-id 9 --site-id 9 --agent-type workstation --auth yaddayaddayadda
Should be this:
curl -L -o /tmp/tacticalagent-v2.5.0-darwin-arm64 'https://agents.tacticalrmm.com/api/v2/agents/?version=2.5.0&arch=arm64&token=yaddataddayadda&plat=darwin&api=api.mydomain.com' && chmod +x /tmp/tacticalagent-v2.5.0-darwin-arm64 && sudo ./tmp/tacticalagent-v2.5.0-darwin-arm64 -m install --api https://api.mydomain.com --client-id 9 --site-id 9 --agent-type workstation --auth yaddayaddayadda