From b6043dcc2a2fc9e3a48f2c2a06960b369956d42b Mon Sep 17 00:00:00 2001 From: Andreas Jordan <66946165+andreasjordan@users.noreply.github.com> Date: Sun, 17 Nov 2024 19:27:52 +0100 Subject: [PATCH] Fix for installation of SQL Server Maintenance Solution by Ola Hallengren: Changed name of branch from master to main (#9549) --- public/Install-DbaMaintenanceSolution.ps1 | 2 +- public/Save-DbaCommunitySoftware.ps1 | 2 +- public/Update-DbaMaintenanceSolution.ps1 | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/public/Install-DbaMaintenanceSolution.ps1 b/public/Install-DbaMaintenanceSolution.ps1 index cded18dca9..0a2c1b1acc 100644 --- a/public/Install-DbaMaintenanceSolution.ps1 +++ b/public/Install-DbaMaintenanceSolution.ps1 @@ -258,7 +258,7 @@ function Install-DbaMaintenanceSolution { if (-not $localCachedCopy) { # Do we need a fresly cached version of the software? $dbatoolsData = Get-DbatoolsConfigValue -FullName 'Path.DbatoolsData' - $localCachedCopy = Join-DbaPath -Path $dbatoolsData -Child 'sql-server-maintenance-solution-master' + $localCachedCopy = Join-DbaPath -Path $dbatoolsData -Child 'sql-server-maintenance-solution-main' if ($Force -or $LocalFile -or -not (Test-Path -Path $localCachedCopy)) { if ($PSCmdlet.ShouldProcess('MaintenanceSolution', 'Update local cached copy of the software')) { try { diff --git a/public/Save-DbaCommunitySoftware.ps1 b/public/Save-DbaCommunitySoftware.ps1 index 97b22e95a8..5d8d6ba467 100644 --- a/public/Save-DbaCommunitySoftware.ps1 +++ b/public/Save-DbaCommunitySoftware.ps1 @@ -91,7 +91,7 @@ function Save-DbaCommunitySoftware { # Set Branch, Url and LocalDirectory for known Software if ($Software -eq 'MaintenanceSolution') { if (-not $Branch) { - $Branch = 'master' + $Branch = 'main' } if (-not $Url) { $Url = "https://github.com/olahallengren/sql-server-maintenance-solution/archive/$Branch.zip" diff --git a/public/Update-DbaMaintenanceSolution.ps1 b/public/Update-DbaMaintenanceSolution.ps1 index 6666994045..b30328c275 100644 --- a/public/Update-DbaMaintenanceSolution.ps1 +++ b/public/Update-DbaMaintenanceSolution.ps1 @@ -89,7 +89,7 @@ function Update-DbaMaintenanceSolution { # Do we need a new local cached version of the software? $dbatoolsData = Get-DbatoolsConfigValue -FullName 'Path.DbatoolsData' - $localCachedCopy = Join-DbaPath -Path $dbatoolsData -Child 'sql-server-maintenance-solution-master' + $localCachedCopy = Join-DbaPath -Path $dbatoolsData -Child 'sql-server-maintenance-solution-main' if ($Force -or $LocalFile -or -not (Test-Path -Path $localCachedCopy)) { if ($PSCmdlet.ShouldProcess('MaintenanceSolution', 'Update local cached copy of the software')) { try {