updated the triggerInstall() to run install-dattormm 1st and svs toolkit 2nd

This commit is contained in:
2025-07-10 13:24:16 -04:00
parent 70c14a0ec2
commit 938fa0265e

View File

@@ -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
// =======================================================================