Skip to content

Commit

Permalink
Merge pull request KelvinTegelaar#1153 from KelvinTegelaar/dev
Browse files Browse the repository at this point in the history
Dev to hotfix
  • Loading branch information
JohnDuprey authored Oct 12, 2024
2 parents ca40bab + eeb9068 commit 720ce15
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ Function Invoke-ExecExtensionsConfig {
# Check if NinjaOne URL is set correctly and the instance has at least version 5.6
if ($Body.NinjaOne) {
$AllowedNinjaHostnames = @(
'app.ninjarmmm.com',
'eu.ninjarmmm.com',
'oc.ninjarmmm.com',
'ca.ninjarmmm.com',
'app.ninjarmm.com',
'eu.ninjarmm.com',
'oc.ninjarmm.com',
'ca.ninjarmm.com',
'us2.ninjarmm.com'
)
$SetNinjaHostname = $Body.NinjaOne.Instance -replace '/ws', '' -replace 'https://', ''
Expand All @@ -46,7 +46,7 @@ Function Invoke-ExecExtensionsConfig {
try {
[version]$Version = (Invoke-WebRequest -Method GET -Uri "$SetNinjaHostname/app-version.txt" -ea stop).content
} catch {
throw "Failed to connect to NinjaOne check your Instance is set correctly eg 'app.ninjarmmm.com'"
throw "Failed to connect to NinjaOne check your Instance is set correctly eg 'app.ninjarmm.com'"
}
if ($Version -lt [version]'5.6.0.0') {
throw 'NinjaOne 5.6.0.0 is required.'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,10 @@ function Invoke-NinjaOneTenantSync {
$Configuration = ((Get-CIPPAzDataTableEntity @Table).config | ConvertFrom-Json).NinjaOne

$AllowedNinjaHostnames = @(
'app.ninjarmmm.com',
'eu.ninjarmmm.com',
'oc.ninjarmmm.com',
'ca.ninjarmmm.com',
'app.ninjarmm.com',
'eu.ninjarmm.com',
'oc.ninjarmm.com',
'ca.ninjarmm.com',
'us2.ninjarmm.com'
)

Expand Down
2 changes: 1 addition & 1 deletion version_latest.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
6.5.1
6.5.2

0 comments on commit 720ce15

Please sign in to comment.