Skip to content

Commit

Permalink
fixup! fixup! fixup! Add an action to support legacy PHP debian and u…
Browse files Browse the repository at this point in the history
…buntu repositories
  • Loading branch information
Mikhail Sandakov committed Aug 30, 2024
1 parent 4bc50f6 commit ab4f02b
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions pleskdistup/actions/distupgrade.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,23 +68,21 @@ def estimate_revert_time(self) -> int:
return 0


class UpdateLegacyPHPRepositories(action.ActiveAction):
class UpdateLegacyPhpRepositories(action.ActiveAction):
legacy_php_versions_inf3_urls: typing.List[str]
from_os: dist.Distro
to_os: dist.Distro
sources_list_d_path: str

def __init__(
self,
from_os: dist.Distro,
to_os: dist.Distro,
sources_list_d_path: str = "/etc/apt/sources.list.d/",
self,
from_os: dist.Distro,
to_os: dist.Distro,
sources_list_d_path: str = "/etc/apt/sources.list.d/",
):
self.name = "update legacy PHP repositories"
self.legacy_php_versions_inf3_urls = [
"https://autoinstall.plesk.com/php71.inf3",
"https://autoinstall.plesk.com/php72.inf3",
"https://autoinstall.plesk.com/php73.inf3",
"https://autoinstall.plesk.com/php{}.inf3".format(version) for version in [71, 72, 73]
]
self.from_os = from_os
self.to_os = to_os
Expand Down

0 comments on commit ab4f02b

Please sign in to comment.