Skip to content

Commit

Permalink
FIX replace 20.04->22.04 in repo URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
ukablan-wpc committed Oct 1, 2024
1 parent 7bfe866 commit 7c1f301
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions ubuntu20to22/upgrader.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,10 @@ def construct_actions(
# we support following PHP versions: PHP 7.1, 7.2, 7.3.
actions.UpdateLegacyPhpRepositories(self._distro_from, self._distro_to),
actions.SetupUbuntuRepositories("focal", "jammy"),
actions.ReplaceAptReposRegexp(
r'(http|https)://([^/]+)/(.*\b)20\.04(\b.*)',
'\g<1>://\g<2>/\g<3>22.04\g<4>',
)
actions.SwitchPleskRepositories(to_os_version="22.04"),
],
"Dist-upgrade": [
Expand Down

0 comments on commit 7c1f301

Please sign in to comment.