Skip to content

Commit b6043dc

Browse files
Fix for installation of SQL Server Maintenance Solution by Ola Hallengren: Changed name of branch from master to main (#9549)
1 parent 8b922ad commit b6043dc

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

public/Install-DbaMaintenanceSolution.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ function Install-DbaMaintenanceSolution {
258258
if (-not $localCachedCopy) {
259259
# Do we need a fresly cached version of the software?
260260
$dbatoolsData = Get-DbatoolsConfigValue -FullName 'Path.DbatoolsData'
261-
$localCachedCopy = Join-DbaPath -Path $dbatoolsData -Child 'sql-server-maintenance-solution-master'
261+
$localCachedCopy = Join-DbaPath -Path $dbatoolsData -Child 'sql-server-maintenance-solution-main'
262262
if ($Force -or $LocalFile -or -not (Test-Path -Path $localCachedCopy)) {
263263
if ($PSCmdlet.ShouldProcess('MaintenanceSolution', 'Update local cached copy of the software')) {
264264
try {

public/Save-DbaCommunitySoftware.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ function Save-DbaCommunitySoftware {
9191
# Set Branch, Url and LocalDirectory for known Software
9292
if ($Software -eq 'MaintenanceSolution') {
9393
if (-not $Branch) {
94-
$Branch = 'master'
94+
$Branch = 'main'
9595
}
9696
if (-not $Url) {
9797
$Url = "https://github.com/olahallengren/sql-server-maintenance-solution/archive/$Branch.zip"

public/Update-DbaMaintenanceSolution.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ function Update-DbaMaintenanceSolution {
8989

9090
# Do we need a new local cached version of the software?
9191
$dbatoolsData = Get-DbatoolsConfigValue -FullName 'Path.DbatoolsData'
92-
$localCachedCopy = Join-DbaPath -Path $dbatoolsData -Child 'sql-server-maintenance-solution-master'
92+
$localCachedCopy = Join-DbaPath -Path $dbatoolsData -Child 'sql-server-maintenance-solution-main'
9393
if ($Force -or $LocalFile -or -not (Test-Path -Path $localCachedCopy)) {
9494
if ($PSCmdlet.ShouldProcess('MaintenanceSolution', 'Update local cached copy of the software')) {
9595
try {

0 commit comments

Comments
 (0)