Skip to content

Commit

Permalink
Accept PHP 7.1 since it is available on AlmaLinux 8
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikhail Sandakov committed Mar 12, 2024
1 parent 8cb79c6 commit d6565e1
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@

DEFAULT_LOG_FILE = "/var/log/plesk/centos2alma.log"
PRE_REBOOT_DELAY = 45
PHP_MINIMAL_VERSION_ON_ALMALINUX = "7.1"


def get_version() -> str:
Expand Down Expand Up @@ -133,10 +134,10 @@ def is_required_conditions_satisfied(options: typing.Any, stage_flag: Stages) ->
actions.PleskVersionIsActual(),
actions.PleskInstallerNotInProgress(),
actions.CheckAvailableSpace(),
actions.AssertMinPhpVersionInstalled("7.2"),
actions.AssertMinPhpVersionUsedByWebsites("7.2"),
actions.AssertMinPhpVersionUsedByCron("7.2"),
actions.AssertOSVendorPHPUsedByWebsites("7.2"),
actions.AssertMinPhpVersionInstalled(PHP_MINIMAL_VERSION_ON_ALMALINUX),
actions.AssertMinPhpVersionUsedByWebsites(PHP_MINIMAL_VERSION_ON_ALMALINUX),
actions.AssertMinPhpVersionUsedByCron(PHP_MINIMAL_VERSION_ON_ALMALINUX),
actions.AssertOSVendorPHPUsedByWebsites(PHP_MINIMAL_VERSION_ON_ALMALINUX),
actions.CheckGrubInstalled(),
actions.CheckNoMoreThenOneKernelNamedNIC(),
actions.CheckIsInContainer(),
Expand Down

0 comments on commit d6565e1

Please sign in to comment.