diff --git a/api/tacticalrmm/agents/utils.py b/api/tacticalrmm/agents/utils.py index e2db02bc..667897df 100644 --- a/api/tacticalrmm/agents/utils.py +++ b/api/tacticalrmm/agents/utils.py @@ -51,7 +51,7 @@ def generate_linux_install( uri = get_mesh_ws_url() mesh_id = asyncio.run(get_mesh_device_id(uri, core.mesh_device_group)) mesh_dl = ( - f"{core.mesh_site}/meshagents?id={mesh_id}&installflags=0&meshinstall={arch_id}" + f"{core.mesh_site}/meshagents?id={mesh_id}&installflags=2&meshinstall={arch_id}" ) sh = settings.LINUX_AGENT_SCRIPT diff --git a/api/tacticalrmm/core/agent_linux.sh b/api/tacticalrmm/core/agent_linux.sh index c8ee31d7..6bd09879 100755 --- a/api/tacticalrmm/core/agent_linux.sh +++ b/api/tacticalrmm/core/agent_linux.sh @@ -85,14 +85,14 @@ InstallMesh() { wget --no-check-certificate -q -O ${meshTmpBin} ${meshDL} chmod +x ${meshTmpBin} mkdir -p ${meshDir} - env LC_ALL=en_US.UTF-8 LANGUAGE=en_US ${meshTmpBin} -install --installPath=${meshDir} + env LC_ALL=en_US.UTF-8 LANGUAGE=en_US XAUTHORITY=foo DISPLAY=bar ${meshTmpBin} -install --installPath=${meshDir} sleep 1 rm -rf ${meshTmpDir} } RemoveMesh() { if [ -f "${meshSystemBin}" ]; then - ${meshSystemBin} -uninstall + env XAUTHORITY=foo DISPLAY=bar ${meshSystemBin} -uninstall sleep 1 fi @@ -133,7 +133,7 @@ else InstallMesh sleep 2 echo "Getting mesh node id..." - MESH_NODE_ID=$(${agentBin} -m nixmeshnodeid) + MESH_NODE_ID=$(env XAUTHORITY=foo DISPLAY=bar ${agentBin} -m nixmeshnodeid) fi if [ ! -d "${agentBinPath}" ]; then