Update TGBeta.ps1
This commit is contained in:
42
TGBeta.ps1
42
TGBeta.ps1
@@ -695,31 +695,21 @@ function GetHtmlContent {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function triggerInstall() {
|
function triggerInstall() {
|
||||||
|
|
||||||
const installSVSMSPModule = document.querySelector('input[name="installSVSMSPModule"]');
|
|
||||||
if (installSVSMSPModule.checked) {
|
|
||||||
fetch('/installSVSMSPModule', { method: 'GET' });
|
|
||||||
appendLog("Installing SVSMSP Module", "cyan");
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
const dropdown = document.getElementById('dattoRmmDropdown');
|
const dropdown = document.getElementById('dattoRmmDropdown');
|
||||||
const UID = dropdown.options[dropdown.selectedIndex].value;
|
const UID = dropdown.options[dropdown.selectedIndex].value;
|
||||||
const Name = dropdown.options[dropdown.selectedIndex].text;
|
const Name = dropdown.options[dropdown.selectedIndex].text;
|
||||||
|
|
||||||
const setSVSPowerplan = document.querySelector('input[name="setSVSPowerplan"]');
|
const installSVSMSPModule = document.querySelector('input[name="installSVSMSPModule"]');
|
||||||
|
if (installSVSMSPModule.checked) {
|
||||||
|
fetch('/installSVSMSPModule', { method: 'GET' });
|
||||||
|
appendLog("Installing SVSMSP Module", "cyan");
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
const installDattoRMM = document.querySelector('input[name="installDattoRMM"]');
|
const installDattoRMM = document.querySelector('input[name="installDattoRMM"]');
|
||||||
const installCyberQP = document.querySelector('input[name="installCyberQP"]');
|
if (installDattoRMM.checked) {
|
||||||
const installSplashtop = document.querySelector('input[name="installSplashtop"]');
|
|
||||||
const installSVSHelpDesk = document.querySelector('input[name="installSVSHelpDesk"]');
|
|
||||||
const installSVSWatchtower = document.querySelector('input[name="installSVSWatchtower"]');
|
|
||||||
const installThreatLocker = document.querySelector('input[name="installThreatLocker"]');
|
|
||||||
const installRocketCyber = document.querySelector('input[name="installRocketCyber"]');
|
|
||||||
|
|
||||||
if (installDattoRMM.checked) {
|
|
||||||
const DattoRMMCheckbox = document.querySelectorAll('input[name="dattoRMMOption"]:checked');
|
const DattoRMMCheckbox = document.querySelectorAll('input[name="dattoRMMOption"]:checked');
|
||||||
appendLog("Installing selected site RMM...", "cyan");
|
appendLog("Installing selected site RMM...", "cyan");
|
||||||
|
|
||||||
@@ -737,12 +727,16 @@ function GetHtmlContent {
|
|||||||
body: JSON.stringify(payload),
|
body: JSON.stringify(payload),
|
||||||
});
|
});
|
||||||
|
|
||||||
fetch('/installrmm', {
|
|
||||||
method: 'POST',
|
|
||||||
headers: { 'Content-Type': 'application/json' },
|
const setSVSPowerplan = document.querySelector('input[name="setSVSPowerplan"]');
|
||||||
body: JSON.stringify({ installRMMCommand, UID, Name })
|
const installCyberQP = document.querySelector('input[name="installCyberQP"]');
|
||||||
});
|
const installSplashtop = document.querySelector('input[name="installSplashtop"]');
|
||||||
}
|
const installSVSHelpDesk = document.querySelector('input[name="installSVSHelpDesk"]');
|
||||||
|
const installSVSWatchtower = document.querySelector('input[name="installSVSWatchtower"]');
|
||||||
|
const installThreatLocker = document.querySelector('input[name="installThreatLocker"]');
|
||||||
|
const installRocketCyber = document.querySelector('input[name="installRocketCyber"]');
|
||||||
|
|
||||||
|
|
||||||
if (setSVSPowerplan.checked) {
|
if (setSVSPowerplan.checked) {
|
||||||
fetch('/SetSVSPowerplan', { method: 'GET' });
|
fetch('/SetSVSPowerplan', { method: 'GET' });
|
||||||
|
|||||||
Reference in New Issue
Block a user