File tree 2 files changed +9
-6
lines changed
2 files changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ function Install-IcingaComponent()
21
21
22
22
Set-IcingaTLSVersion ;
23
23
24
- if ($Version -eq ' release' ) {
24
+ if ($Version.ToLower () -eq ' release' -Or $Version .ToLower () -eq ' latest ' ) {
25
25
$Version = $null ;
26
26
}
27
27
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ function Update-Icinga()
2
2
{
3
3
param (
4
4
[string ]$Name = $null ,
5
- [string ]$Version = $null ,
5
+ [string ]$Version = ' release ' ,
6
6
[switch ]$Release = $FALSE ,
7
7
[switch ]$Snapshot = $FALSE ,
8
8
[switch ]$Confirm = $FALSE ,
@@ -23,10 +23,13 @@ function Update-Icinga()
23
23
continue ;
24
24
}
25
25
26
- if ([string ]::IsNullOrEmpty($Version ) -eq $FALSE ){
27
- $NewVersion = $Component.LatestVersion ;
28
- } else {
29
- $NewVersion = $Version ;
26
+ $NewVersion = $Component.LatestVersion ;
27
+
28
+ if ([string ]::IsNullOrEmpty($Version ) -eq $FALSE ) {
29
+ # Ensure we are backwards compatible with Icinga for Windows v1.11.0 which broke the version update feature
30
+ if ($Version.ToLower () -ne ' release' -And $Version.ToLower () -ne ' latest' ) {
31
+ $NewVersion = $Version ;
32
+ }
30
33
}
31
34
32
35
if ([string ]::IsNullOrEmpty($NewVersion )) {
You can’t perform that action at this time.
0 commit comments