MeshCentral
MeshCentral copied to clipboard
Customized macOS Agents?
Describe the bug It seems that at some point quite recently, the agent customization settings have started applying to Mac agents which would be great except they also seem to be causing the install to fail. A few months back, I installed my customized agent on my freshly reinstalled Mac and it worked perfectly and installed with the usual meshagent_etc name as it always has (so no customization but it did work). Just today, I tried to install on a different Mac (not freshly installed but it had never had any MeshCentral software on it before) and while the installer confirms that it completed successfully and the path under /usr/local/mesh_serves was created correctly and with my customized company name, it did not create the agent executable or any of the supporting files (.msh, .db, etc.).
I suspect, but can't confirm, that this has something to do with there being spaces in my company's name as when I ran the uninstaller, it failed on a bunch of lines due to unescaped spaces being present. If I had to guess, the initial path is being set correctly with escaped spaces but somewhere else during the install, the spaces are being left in the open and the commands are failing.
Not sure what specific details are needed but I'll say that the server is running the latest version (1.1.24) on Debian 11 and the client machine was an older Intel-based Mac running macOS 12.4. I'm happy to provide any additional details needed - just let me know. Thanks!
To Reproduce Steps to reproduce the behavior:
- Download the Mac installer for a customized agent.
- Run installer and check contents of mesh_services folder.
Expected behavior Installer would finish, mesh_services folder would be populated with custom path and agent software, .msh, .db, etc files.
Screenshots N/A
Server Software (please complete the following information):
- OS: Debian 11
- Virtualization: VM on an ESXi host
- Network: WAN only, direct, LetsEncrypt SSL
- Version: 1.1.24
- Node: 18.18.0
Client Device (please complete the following information):
- Device: Windows PC
- OS: Windows 11 23H2
- Network: Remote over WAN
- Browser: Google Chrome
- MeshCentralRouter Version: N/A
Remote Device (please complete the following information):
- Device: MacBook Air
- OS: macOS 12.4
- Network: Remote over WAN
- Current Core Version (if known): Unknown (install failed)
Additional context N/A
Your config.json file
Attached in reply below