Skip to content

Commit

Permalink
Merge pull request #7 from plesk/plesk/ukablan/fix/PAUX-6369/when_rep…
Browse files Browse the repository at this point in the history
…o_url_contains_version_replace

Replace 18.04->20.04 in repo URLs
  • Loading branch information
ukablan-wpc authored Oct 2, 2024
2 parents 0d96886 + e9a9c96 commit 2bd3dcb
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions ubuntu18to20/upgrader.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,17 @@ def construct_actions(
actions.AddUpgradeSystemdService(os.path.abspath(upgrader_bin_path), options),
actions.MoveOldBindConfigToNamed(),
actions.RemoveMailComponents(options.state_dir),
],
"Switch repositories": [
actions.SetupUbuntu20Repositories(),
actions.ReplaceAptReposRegexp(
r'(http|https)://([^/]+)/(.*\b)18\.04(\b.*)',
'\g<1>://\g<2>/\g<3>20.04\g<4>',
),
actions.ReplaceAptReposRegexp(
r'(http|https)://([^/]+)/(.*\b)18\(\b.*)',
'\g<1>://\g<2>/\g<3>20\g<4>',
),
],
"Pre-install packages": [
actions.InstallNextKernelVersion(),
Expand Down

0 comments on commit 2bd3dcb

Please sign in to comment.