Skip to content

Commit

Permalink
issue 3146 (#3184)
Browse files Browse the repository at this point in the history
Fix for issue #3146
Add -force on Install-NavApp (as it is already done on Publish-NavApp
and Sync-NavApp)

Co-authored-by: freddydk <[email protected]>
  • Loading branch information
freddydk and freddydk authored Sep 22, 2023
1 parent 7e9064f commit 45c6caa
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 14 deletions.
24 changes: 10 additions & 14 deletions AppHandling/Publish-NavContainerApp.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -368,25 +368,21 @@ try {
$install = $false
}
}


$installArgs = @{}
if ($language) {
$installArgs += @{ "Language" = $language }
}
if ($force) {
$installArgs += @{ "Force" = $true }
}
if ($install) {

$languageArgs = @{}
if ($language) {
$languageArgs += @{ "Language" = $language }
}
Write-Host "Installing $appName on tenant $tenant"
Install-NavApp -ServerInstance $ServerInstance -Publisher $appPublisher -Name $appName -Version $appVersion -Tenant $tenant @languageArgs
Install-NavApp -ServerInstance $ServerInstance -Publisher $appPublisher -Name $appName -Version $appVersion -Tenant $tenant @installArgs
}

if ($upgrade) {

$languageArgs = @{}
if ($language) {
$languageArgs += @{ "Language" = $language }
}
Write-Host "Upgrading $appName on tenant $tenant"
Start-NavAppDataUpgrade -ServerInstance $ServerInstance -Publisher $appPublisher -Name $appName -Version $appVersion -Tenant $tenant @languageArgs
Start-NavAppDataUpgrade -ServerInstance $ServerInstance -Publisher $appPublisher -Name $appName -Version $appVersion -Tenant $tenant @installArgs
}
}
}
Expand Down
1 change: 1 addition & 0 deletions ReleaseNotes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Add switch "doNotGetCompanyInfo" to "New-BcEnvironment" to enable skipping getting environment information after environment creation.
Issue #3151 Get-AppSourceProduct returns 404 Not Found
Add parameters exclusiveAccessTicket, path, syncMode, force and skipVersionCheck to Start-BcContainerAppDataUpgrade.
Issue #3146 Publish-BcContainerApp not working headless

5.0.5
Add new option (exitedContainers) on Flush-ContainerHelperCache. Note that exited containers are NOT remove by the all flag, you need all,exitedContainers
Expand Down

0 comments on commit 45c6caa

Please sign in to comment.