Skip to content

Commit 743fb19

Browse files
committed
feat: update macOS install steps with utmstack-macos-agent.pkg
1 parent 8976ad5 commit 743fb19

3 files changed

Lines changed: 13 additions & 7 deletions

File tree

frontend/src/app/app-module/guides/guide-macos-agent/guide-macos-agent.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ <h4 class="card-title mb-0 text-primary">
2121
<div [innerHtml]="step.name"></div>
2222
<ng-container *ngIf="step.content">
2323

24-
<ng-template [ngIf]="step.content.id === 'stepContent2'">
24+
<ng-template [ngIf]="step.content.id === 'stepContent3'">
2525
<app-agent-install-selector [platforms]="architectures" [_selectedPlatform]="architectures[0]"></app-agent-install-selector>
2626
</ng-template>
2727
</ng-container>

frontend/src/app/app-module/guides/guide-macos-agent/guide-macos-agent.component.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,16 @@ export class GuideMacosAgentComponent implements OnInit {
4242
getCommandARM(installerName: string): string {
4343
const ip = window.location.host.includes(':') ? window.location.host.split(':')[0] : window.location.host;
4444

45-
return `sudo bash -c "./${installerName} ${ip} <secret>${this.token}</secret> yes"`;
45+
return `sudo bash -c "/opt/utmstack/${installerName} ${ip} <secret>${this.token}</secret> yes"`;
4646
}
4747

4848

4949
getUninstallCommand(installerName: string): string {
50-
return `sudo bash -c "./utmstack_agent_service uninstall"`;
50+
// tslint:disable-next-line:max-line-length
51+
return `sudo bash -c "/opt/utmstack/${installerName} uninstall; launchctl bootout system /Library/LaunchDaemons/UTMStackAgent.plist 2>/dev/null; rm /Library/LaunchDaemons/UTMStackAgent.plist; rm -rf /opt/utmstack"`;
5152
}
5253

54+
5355
private loadArchitectures() {
5456
this.architectures = [
5557
{

frontend/src/app/app-module/guides/guide-macos-agent/mac.steps.ts

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,17 @@ import {Step} from '../shared/step';
22

33
export const MAC_STEPS: Step[] = [
44
{id: '1',
5-
name: 'Reach out to support to request the installation dependencies for macOS. ' +
6-
'These are required to proceed with the installation or uninstallation process.',
5+
name: 'Contact UTMStack support to obtain the <strong> `utmstack-macos-agent.pkg` </strong> file. ' +
6+
'This package is required to download and install the necessary dependencies.'
77
},
8-
{id: '2',
8+
{
9+
id: '2',
10+
name: 'Run the <strong> `utmstack-macos-agent.pkg` file. This will download and install the required components for the UTMStack agent.'
11+
},
12+
{id: '3',
913
name: 'Use the following command according to the action you wish to perform (install or uninstall):',
1014
content: {
11-
id: 'stepContent2'
15+
id: 'stepContent3'
1216
}
1317
},
1418
];

0 commit comments

Comments
 (0)