Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for installation of SQL Server Maintenance Solution by Ola Hallengren: Changed name of branch from master to main #9549

Merged
merged 1 commit into from
Nov 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion public/Install-DbaMaintenanceSolution.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion public/Save-DbaCommunitySoftware.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion public/Update-DbaMaintenanceSolution.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
Loading