Skip to content

Commit

Permalink
Allow distupgrade when PHP 7.0 is installed
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikhail Sandakov committed Aug 21, 2024
1 parent db46a65 commit 50d069b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions ubuntu20to22/upgrader.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import typing

from pleskdistup import actions
from pleskdistup.common import action, feedback
from pleskdistup.common import action, feedback, php, version
from pleskdistup.phase import Phase
from pleskdistup.upgrader import dist, DistUpgrader, DistUpgraderFactory, PathType

Expand Down Expand Up @@ -144,10 +144,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.4")]

return [
actions.AssertMinPleskVersion("18.0.44"),
actions.AssertPleskInstallerNotInProgress(),
actions.AssertMinPhpVersion("7.4"),
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.AssertDpkgNotLocked(),
actions.AssertNotInContainer(),
actions.AssertPleskComponents(not_installed=["mailman"]),
Expand Down

0 comments on commit 50d069b

Please sign in to comment.