1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2025-03-30 23:37:05 +00:00

Add comments on aligning used php version

This commit is contained in:
KiekerJan 2025-02-27 11:12:49 +01:00
parent 0a4599956c
commit 5c02ea3752
3 changed files with 4 additions and 0 deletions

View File

@ -180,6 +180,8 @@ def wait_for_service(port, public, env, timeout):
time.sleep(min(timeout/4, 1))
def get_php_version():
# Gets the version of PHP used by Mail-in-a-Box
# To modify PHP version, also update variable PHP_VER in functions.sh
return "8.1"
def get_ssh_port():

View File

@ -82,6 +82,7 @@ def do_web_update(env):
# Build an nginx configuration file.
nginx_conf = read_conf("nginx-top.conf")
# Hardcode php version in the nginx configuration file
nginx_conf = re.sub("{{phpver}}", get_php_version(), nginx_conf)
# Load the templates.

View File

@ -5,6 +5,7 @@
# -o pipefail: don't ignore errors in the non-last command in a pipeline
set -euo pipefail
# To modify PHP version, also update method get_php_version() in utils.py
PHP_VER=8.1
function hide_output {