Skip to content

Commit

Permalink
Fix variable
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasmrod committed Dec 3, 2024
1 parent 79a003e commit e05f101
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions orbit/pkg/packaging/packaging.go
Original file line number Diff line number Diff line change
Expand Up @@ -243,8 +243,8 @@ func InitializeUpdates(updateOpt update.Options) (*UpdatesData, error) {

if updateOpt.ServerURL == update.OldFleetTUFURL || updateOpt.ServerURL == update.DefaultURL {
// If using Fleet's TUF then copy the new metadata to the old location (pre-migration) to
// support orbit downgrades after the package is deployed.
oldMetadataPath := filepath.Join(updateOpt.RootDirectory, update.OldFleetTUFURL)
// support orbit downgrades to 1.36.0 or lower.
oldMetadataPath := filepath.Join(updateOpt.RootDirectory, update.OldMetadataFileName)
newMetadataPath := filepath.Join(updateOpt.RootDirectory, update.MetadataFileName)
if err := file.Copy(newMetadataPath, oldMetadataPath, constant.DefaultFileMode); err != nil {
return nil, fmt.Errorf("failed to create %s copy: %w", oldMetadataPath, err)
Expand Down

0 comments on commit e05f101

Please sign in to comment.