Update StackMonkey.ps1
This commit is contained in:
@@ -132,11 +132,11 @@ function Get-DattoApiCredentials {
|
|||||||
|
|
||||||
'Datto' {
|
'Datto' {
|
||||||
Write-LogHelper "Headless DattoRMM deploy (via n8n)" Info Startup
|
Write-LogHelper "Headless DattoRMM deploy (via n8n)" Info Startup
|
||||||
|
try{
|
||||||
# ────────────────────────────────────────────
|
# ────────────────────────────────────────────
|
||||||
# 1) Fetch URL, Key & Secret from n8n webhook
|
# 1) Fetch URL, Key & Secret from n8n webhook
|
||||||
# ────────────────────────────────────────────
|
# ────────────────────────────────────────────
|
||||||
|
|
||||||
# 1) Fetch creds
|
# 1) Fetch creds
|
||||||
$creds = Get-DattoApiCredentials -Password $N8nPassword
|
$creds = Get-DattoApiCredentials -Password $N8nPassword
|
||||||
if (-not $creds) { throw "Could not fetch creds" }
|
if (-not $creds) { throw "Could not fetch creds" }
|
||||||
@@ -172,7 +172,7 @@ function Get-DattoApiCredentials {
|
|||||||
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
}
|
||||||
#endregion ScriptMonkey run silently Entrypoint
|
#endregion ScriptMonkey run silently Entrypoint
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user