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