Skip to content

Commit

Permalink
Fix backup_repo procedure
Browse files Browse the repository at this point in the history
  • Loading branch information
n549 committed Oct 28, 2024
1 parent 252ce26 commit e5845d1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion kubemarine/apt.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ def backup_repo(group: NodeGroup) -> Optional[RunnersGroupResult]:
return None
# all files in directory will be renamed: xxx.repo -> xxx.repo.bak
# if there already any files with ".bak" extension, they should not be renamed to ".bak.bak"!
return group.sudo("find /etc/apt/ -type f -name '*.list' | "
# since Ubuntu 24.04 default repos are in ubuntu.sources file
return group.sudo("find /etc/apt/ -type f -name '*.list' -o '*.sources'| "
"sudo xargs -t -iNAME mv -bf NAME NAME.bak")


Expand Down

0 comments on commit e5845d1

Please sign in to comment.