Skip to content

Commit d5b1162

Browse files
authored
Merge pull request #459 from Icinga:fix/update_icinga_not_working_between_snapshot_stable
Fix: Update-Icinga not working between snapshot/stable Fixes `Update-Icinga` which now supports to update from a snapshot branch and to downgrade properly from snapshot to stable to the latest release packages again. **NOTE:** It is still **not** entirely supported to downgrade from snapshot to stable, as possible migrations for later versions will **not** be rolled back.
2 parents 417636a + 9d388fd commit d5b1162

File tree

2 files changed

+1
-12
lines changed

2 files changed

+1
-12
lines changed

doc/100-General/10-Changelog.md

+1
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ Released closed milestones can be found on [GitHub](https://github.com/Icinga/ic
3838
* [#454](https://github.com/Icinga/icinga-powershell-framework/pull/454) Fixes JEA catalog compiler and background daemon execution in JEA context
3939
* [#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
4040
* [#458](https://github.com/Icinga/icinga-powershell-framework/pull/458) Fixes `Install-IcingaSecurity` which should only run in an administrative shell
41+
* [#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)
4142

4243
### Enhancements
4344

lib/core/repository/Get-IcingaInstallation.psm1

-12
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,6 @@ function Get-IcingaInstallation()
2525
[string]$LatestVersion = $InstallPackage.Package.Version;
2626
}
2727

28-
if ([string]::IsNullOrEmpty($LatestVersion) -eq $FALSE -And [Version]$LatestVersion -le [Version]$CurrentVersion) {
29-
$LatestVersion = '';
30-
}
31-
3228
Add-IcingaHashtableItem `
3329
-Hashtable $InstalledComponents `
3430
-Key $ComponentName `
@@ -58,10 +54,6 @@ function Get-IcingaInstallation()
5854
[string]$LatestVersion = $InstallPackage.Package.Version;
5955
}
6056

61-
if ([string]::IsNullOrEmpty($LatestVersion) -eq $FALSE -And [Version]$LatestVersion -le [Version]$CurrentVersion) {
62-
$LatestVersion = '';
63-
}
64-
6557
$InstalledComponents.Add(
6658
'service',
6759
@{
@@ -89,10 +81,6 @@ function Get-IcingaInstallation()
8981
$LatestVersion = $InstallPackage.Package.Version;
9082
}
9183

92-
if ([string]::IsNullOrEmpty($LatestVersion) -eq $FALSE -And [Version]$LatestVersion -le [Version]$CurrentVersion) {
93-
$LatestVersion = '';
94-
}
95-
9684
$InstalledComponents.Add(
9785
'agent',
9886
@{

0 commit comments

Comments
 (0)