mod_php_install.sh: set default max_execution_time to 360s.

This commit is contained in:
Christoph 2024-05-06 00:37:06 +02:00
parent 0d94d23fe3
commit ec717642fc

View File

@ -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