updated the triggerInstall() to run install-dattormm 1st and svs toolkit 2nd
This commit is contained in:
@@ -875,7 +875,7 @@ async function triggerInstall() {
|
|||||||
runBtn.disabled = true;
|
runBtn.disabled = true;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
// 1. If installDattoRMM is selected, run it first
|
// 1. Run DattoRMM first
|
||||||
const dattoCB = document.getElementById('installDattoRMM');
|
const dattoCB = document.getElementById('installDattoRMM');
|
||||||
if (dattoCB && dattoCB.checked) {
|
if (dattoCB && dattoCB.checked) {
|
||||||
const sub = Array.from(
|
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) {
|
for (const t of tasks) {
|
||||||
if (t.id === 'installDattoRMM') continue;
|
if (['installDattoRMM', 'installSVSMSPModule'].includes(t.id)) continue;
|
||||||
|
|
||||||
const cb = document.getElementById(t.id);
|
const cb = document.getElementById(t.id);
|
||||||
if (!cb || !cb.checked) continue;
|
if (!cb || !cb.checked) continue;
|
||||||
@@ -913,6 +919,7 @@ async function triggerInstall() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// =======================================================================
|
// =======================================================================
|
||||||
// Shutdown Handler
|
// Shutdown Handler
|
||||||
// =======================================================================
|
// =======================================================================
|
||||||
|
|||||||
Reference in New Issue
Block a user