Skip to content

Commit

Permalink
mac agent
Browse files Browse the repository at this point in the history
  • Loading branch information
wh1te909 committed Sep 23, 2022
1 parent 59de35c commit 3a45c2a
Show file tree
Hide file tree
Showing 6 changed files with 40 additions and 17 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "web",
"version": "0.100.9",
"version": "0.100.10-dev",
"private": true,
"productName": "Tactical RMM",
"scripts": {
Expand Down
8 changes: 8 additions & 0 deletions src/components/AgentTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,14 @@
>
<q-tooltip>Linux</q-tooltip>
</q-icon>
<q-icon
v-else-if="props.row.plat === 'darwin'"
name="mdi-apple"
size="sm"
color="primary"
>
<q-tooltip>macOS</q-tooltip>
</q-icon>
</q-td>

<q-td key="checks-status" :props="props">
Expand Down
6 changes: 3 additions & 3 deletions src/components/modals/agents/AgentDownload.vue
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
</q-badge>
<span>Do not popup any message boxes during install</span>
</div>
<div class="q-pa-xs q-gutter-xs">
<div v-if="info.plat === 'windows'" class="q-pa-xs q-gutter-xs">
<q-badge class="text-caption q-mr-xs" color="grey" text-color="black">
<code
>-local-mesh "C:\\&lt;some folder or
Expand All @@ -46,7 +46,7 @@
</q-badge>
<span> To skip downloading the Mesh Agent during the install.</span>
</div>
<div class="q-pa-xs q-gutter-xs">
<div v-if="info.plat === 'windows'" class="q-pa-xs q-gutter-xs">
<q-badge class="text-caption q-mr-xs" color="grey" text-color="black">
<code
>-meshdir "C:\Program Files\Your Company Name\Mesh Agent"</code
Expand All @@ -63,7 +63,7 @@
</q-badge>
<span>Don't install the mesh agent</span>
</div>
<div class="q-pa-xs q-gutter-xs">
<div v-if="info.plat === 'windows'" class="q-pa-xs q-gutter-xs">
<q-badge class="text-caption q-mr-xs" color="grey" text-color="black">
<code>-cert "C:\\&lt;some folder or path&gt;\\ca.pem"</code>
</q-badge>
Expand Down
1 change: 1 addition & 0 deletions src/components/modals/agents/BulkAction.vue
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,7 @@ const monTypeOptions = [
const osTypeOptions = [
{ label: "Windows", value: "windows" },
{ label: "Linux", value: "linux" },
{ label: "macOS", value: "darwin" },
{ label: "All", value: "all" },
];
Expand Down
39 changes: 26 additions & 13 deletions src/components/modals/agents/InstallAgent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,15 @@
goarch = GOARCH_AMD64;
"
/>
<q-radio
v-model="agentOS"
val="darwin"
label="macOS"
@update:model-value="
installMethod = 'mac';
goarch = GOARCH_AMD64;
"
/>
</div>
</q-card-section>
<q-card-section>
Expand Down Expand Up @@ -105,37 +114,37 @@
v-model="goarch"
:val="GOARCH_AMD64"
label="64 bit"
v-show="agentOS === 'windows'"
/>
<q-radio
v-model="goarch"
:val="GOARCH_i386"
label="32 bit"
v-show="agentOS === 'windows'"
v-show="agentOS === 'windows' || agentOS === 'linux'"
/>
<q-radio
v-model="goarch"
:val="GOARCH_AMD64"
label="64 bit"
v-show="agentOS !== 'windows'"
label="Intel 64 bit"
v-show="agentOS === 'darwin'"
/>
<q-radio
v-model="goarch"
:val="GOARCH_i386"
label="32 bit"
v-show="agentOS !== 'windows'"
v-show="agentOS !== 'darwin'"
/>
<q-radio
v-model="goarch"
:val="GOARCH_ARM64"
label="ARM 64 bit"
v-show="agentOS !== 'windows'"
v-show="agentOS === 'linux'"
/>
<q-radio
v-model="goarch"
:val="GOARCH_ARM64"
label="Apple Silicon (M1, M2)"
v-show="agentOS === 'darwin'"
/>
<q-radio
v-model="goarch"
:val="GOARCH_ARM32"
label="ARM 32 bit (Rasp Pi)"
v-show="agentOS !== 'windows'"
v-show="agentOS === 'linux'"
/>
</div>
</q-card-section>
Expand Down Expand Up @@ -266,12 +275,13 @@ export default {
plat: this.agentOS,
};
if (this.installMethod === "manual") {
if (this.installMethod === "manual" || this.installMethod === "mac") {
this.$axios.post("/agents/installer/", data).then((r) => {
this.info = {
expires: this.expires,
data: r.data,
goarch: this.goarch,
plat: this.agentOS,
};
this.showAgentDownload = true;
});
Expand Down Expand Up @@ -343,6 +353,9 @@ export default {
case "bash":
text = "Download linux install script";
break;
case "mac":
text = "Show installation instructions";
break;
}
return text;
Expand Down
1 change: 1 addition & 0 deletions src/composables/agents.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,5 @@ export function cmdPlaceholder(shell) {
export const agentPlatformOptions = [
{ value: "windows", label: "Windows" },
{ value: "linux", label: "Linux" },
{ value: "darwin", label: "macOS" },
];

0 comments on commit 3a45c2a

Please sign in to comment.