mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2025-04-01 23:57:05 +00:00
Add comments on aligning used php version
This commit is contained in:
parent
0a4599956c
commit
5c02ea3752
@ -180,6 +180,8 @@ def wait_for_service(port, public, env, timeout):
|
|||||||
time.sleep(min(timeout/4, 1))
|
time.sleep(min(timeout/4, 1))
|
||||||
|
|
||||||
def get_php_version():
|
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"
|
return "8.1"
|
||||||
|
|
||||||
def get_ssh_port():
|
def get_ssh_port():
|
||||||
|
@ -82,6 +82,7 @@ def do_web_update(env):
|
|||||||
|
|
||||||
# Build an nginx configuration file.
|
# Build an nginx configuration file.
|
||||||
nginx_conf = read_conf("nginx-top.conf")
|
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)
|
nginx_conf = re.sub("{{phpver}}", get_php_version(), nginx_conf)
|
||||||
|
|
||||||
# Load the templates.
|
# Load the templates.
|
||||||
|
@ -5,6 +5,7 @@
|
|||||||
# -o pipefail: don't ignore errors in the non-last command in a pipeline
|
# -o pipefail: don't ignore errors in the non-last command in a pipeline
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|
||||||
|
# To modify PHP version, also update method get_php_version() in utils.py
|
||||||
PHP_VER=8.1
|
PHP_VER=8.1
|
||||||
|
|
||||||
function hide_output {
|
function hide_output {
|
||||||
|
Loading…
Reference in New Issue
Block a user