From ec717642fc115a029f0e54e86b7f8eec878426bf Mon Sep 17 00:00:00 2001 From: Christoph Date: Mon, 6 May 2024 00:37:06 +0200 Subject: [PATCH] mod_php_install.sh: set default max_execution_time to 360s. --- mod_php_install.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mod_php_install.sh b/mod_php_install.sh index 72474fa..cb84ca1 100755 --- a/mod_php_install.sh +++ b/mod_php_install.sh @@ -159,7 +159,7 @@ fi if [[ -f "${_HTTPD_CONF_FILE}" ]] && $(grep -q -i -E "^\s*Timeout\s+" "${_HTTPD_CONF_FILE}") ; then _TIMEOUT="$(grep -i -E "^\s*timeout\s+" "${_HTTPD_CONF_FILE}"| awk '{print$2}' | head -1)" else - _TIMEOUT=60 + _TIMEOUT=360 fi if [[ -f "${_HTTPD_CONF_FILE}" ]] && $(grep -q -i -E "^\s*ProxyTimeout\s+" "${_HTTPD_CONF_FILE}") ; then PROXY_TIMEOUT="$(grep -i -E "^\s*ProxyTimeout\s+" "${_HTTPD_CONF_FILE}"| awk '{print$2}' | head -1)" @@ -167,10 +167,10 @@ else PROXY_TIMEOUT=${_TIMEOUT} fi -_MAX_EXECUTION_TIME=180 +_MAX_EXECUTION_TIME=360 if $(is_int "$PROXY_TIMEOUT") ; then - if [[ $PROXY_TIMEOUT -gt 180 ]] ; then + if [[ ${PROXY_TIMEOUT} -gt ${_MAX_EXECUTION_TIME} ]] ; then _MAX_EXECUTION_TIME=$PROXY_TIMEOUT fi else