Skip to content

Commit

Permalink
Raise the minimum level of PHP to 7.4 (was 5.5).
Browse files Browse the repository at this point in the history
  • Loading branch information
trampgeek committed Apr 17, 2024
1 parent 8334831 commit dac9086
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions install
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,11 @@ def do_command(cmd, ignore_errors=False):


def check_php_version():
'''Check that the installed PHP version is at least 5.5.
'''Check that the installed PHP version is at least 7.4.
Raise an exception on failure.
'''
if subprocess.call("php -r 'exit(version_compare(PHP_VERSION, \"5.5.0\", \"lt\"));'", shell=True) != 0:
raise OSError("Jobe requires at least PHP 5.5.")
if subprocess.call("php -r 'exit(version_compare(PHP_VERSION, \"7.4.0\", \"lt\"));'", shell=True) != 0:
raise OSError("Jobe requires at least PHP 7.4.")


def make_sudoers(install_dir, webserver_user, num_jobe_users):
Expand Down

0 comments on commit dac9086

Please sign in to comment.