Skip to content

Commit

Permalink
Allow dist-upgrade when PHP 7.2 is installed
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikhail Sandakov committed Jan 24, 2025
1 parent aca6c19 commit 8475cdd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ubuntu20to22/upgrader.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,14 +152,14 @@ def get_check_actions(
if phase is Phase.FINISH:
return []

PHP_VERSIONS_SUPPORTED_BY_ALMA_8 = ["7.0"] + [str(php) for php in php.get_known_php_versions() if php >= version.PHPVersion("7.3")]
PHP_VERSIONS_SUPPORTED_BY_UBUNTU_22 = ["7.0"] + [str(php) for php in php.get_known_php_versions() if php >= version.PHPVersion("7.2")]

return [
actions.AssertMinPleskVersion("18.0.44"),
actions.AssertPleskInstallerNotInProgress(),
actions.AssertInstalledPhpVersionsInList(PHP_VERSIONS_SUPPORTED_BY_ALMA_8),
actions.AssertPhpVersionsUsedByWebsitesInList(PHP_VERSIONS_SUPPORTED_BY_ALMA_8),
actions.AssertPhpVersionsUsedByCronInList(PHP_VERSIONS_SUPPORTED_BY_ALMA_8),
actions.AssertInstalledPhpVersionsInList(PHP_VERSIONS_SUPPORTED_BY_UBUNTU_22),
actions.AssertPhpVersionsUsedByWebsitesInList(PHP_VERSIONS_SUPPORTED_BY_UBUNTU_22),
actions.AssertPhpVersionsUsedByCronInList(PHP_VERSIONS_SUPPORTED_BY_UBUNTU_22),
actions.AssertDpkgNotLocked(),
actions.AssertNotInContainer(),
actions.AssertPleskComponents(not_installed=["mailman"]),
Expand Down

0 comments on commit 8475cdd

Please sign in to comment.