Fixes Update-Icinga between snapshot/stable

This commit is contained in:
Lord Hepipud 2022-01-30 13:54:55 +01:00
parent 417636a1e4
commit 9d388fd684
2 changed files with 1 additions and 12 deletions

View file

@ -38,6 +38,7 @@ Released closed milestones can be found on [GitHub](https://github.com/Icinga/ic
* [#454](https://github.com/Icinga/icinga-powershell-framework/pull/454) Fixes JEA catalog compiler and background daemon execution in JEA context * [#454](https://github.com/Icinga/icinga-powershell-framework/pull/454) Fixes JEA catalog compiler and background daemon execution in JEA context
* [#456](https://github.com/Icinga/icinga-powershell-framework/pull/456) Fixes JEA service error count not resetting itself after a certain amount of time without errors * [#456](https://github.com/Icinga/icinga-powershell-framework/pull/456) Fixes JEA service error count not resetting itself after a certain amount of time without errors
* [#458](https://github.com/Icinga/icinga-powershell-framework/pull/458) Fixes `Install-IcingaSecurity` which should only run in an administrative shell * [#458](https://github.com/Icinga/icinga-powershell-framework/pull/458) Fixes `Install-IcingaSecurity` which should only run in an administrative shell
* [#459](https://github.com/Icinga/icinga-powershell-framework/pull/459) Fixes `Update-Icinga` which was not working to downgrade snapshot packages pack to release (**NOTE:** It can still happen that migrations of the `Framework` might break your environment. Not recommended in production environments for the `Framework` component)
### Enhancements ### Enhancements

View file

@ -25,10 +25,6 @@ function Get-IcingaInstallation()
[string]$LatestVersion = $InstallPackage.Package.Version; [string]$LatestVersion = $InstallPackage.Package.Version;
} }
if ([string]::IsNullOrEmpty($LatestVersion) -eq $FALSE -And [Version]$LatestVersion -le [Version]$CurrentVersion) {
$LatestVersion = '';
}
Add-IcingaHashtableItem ` Add-IcingaHashtableItem `
-Hashtable $InstalledComponents ` -Hashtable $InstalledComponents `
-Key $ComponentName ` -Key $ComponentName `
@ -58,10 +54,6 @@ function Get-IcingaInstallation()
[string]$LatestVersion = $InstallPackage.Package.Version; [string]$LatestVersion = $InstallPackage.Package.Version;
} }
if ([string]::IsNullOrEmpty($LatestVersion) -eq $FALSE -And [Version]$LatestVersion -le [Version]$CurrentVersion) {
$LatestVersion = '';
}
$InstalledComponents.Add( $InstalledComponents.Add(
'service', 'service',
@{ @{
@ -89,10 +81,6 @@ function Get-IcingaInstallation()
$LatestVersion = $InstallPackage.Package.Version; $LatestVersion = $InstallPackage.Package.Version;
} }
if ([string]::IsNullOrEmpty($LatestVersion) -eq $FALSE -And [Version]$LatestVersion -le [Version]$CurrentVersion) {
$LatestVersion = '';
}
$InstalledComponents.Add( $InstalledComponents.Add(
'agent', 'agent',
@{ @{