Skip to content

Commit

Permalink
Merge pull request #11 from plesk/allow-php72
Browse files Browse the repository at this point in the history
Allow dist-upgrade when PHP 7.2 is installed
  • Loading branch information
SandakovMM authored Jan 24, 2025
2 parents aca6c19 + 8475cdd commit e74f46f
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 e74f46f

Please sign in to comment.