From 938fa0265e8723dc5d143f3c5d09026b43d08a7c Mon Sep 17 00:00:00 2001 From: Stephan Yelle Date: Thu, 10 Jul 2025 13:24:16 -0400 Subject: [PATCH] updated the triggerInstall() to run install-dattormm 1st and svs toolkit 2nd --- StackMonkey.ps1 | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/StackMonkey.ps1 b/StackMonkey.ps1 index b89a4d6..c6897b4 100644 --- a/StackMonkey.ps1 +++ b/StackMonkey.ps1 @@ -875,7 +875,7 @@ async function triggerInstall() { runBtn.disabled = true; try { - // 1. If installDattoRMM is selected, run it first + // 1. Run DattoRMM first const dattoCB = document.getElementById('installDattoRMM'); if (dattoCB && dattoCB.checked) { const sub = Array.from( @@ -896,9 +896,15 @@ async function triggerInstall() { }); } - // 2. Now run everything else + // 2. Run SVSMSP module install second + const svsCB = document.getElementById('installSVSMSPModule'); + if (svsCB && svsCB.checked) { + await fetch('/installSVSMSPModule', { method: 'GET' }); + } + + // 3. Run the remaining tasks for (const t of tasks) { - if (t.id === 'installDattoRMM') continue; + if (['installDattoRMM', 'installSVSMSPModule'].includes(t.id)) continue; const cb = document.getElementById(t.id); if (!cb || !cb.checked) continue; @@ -913,6 +919,7 @@ async function triggerInstall() { } + // ======================================================================= // Shutdown Handler // =======================================================================