1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2026-03-17 17:57:23 +01: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.