mod_php_install.sh: set default max_execution_time to 360s.
This commit is contained in:
parent
0d94d23fe3
commit
ec717642fc
@ -159,7 +159,7 @@ fi
|
|||||||
if [[ -f "${_HTTPD_CONF_FILE}" ]] && $(grep -q -i -E "^\s*Timeout\s+" "${_HTTPD_CONF_FILE}") ; then
|
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)"
|
_TIMEOUT="$(grep -i -E "^\s*timeout\s+" "${_HTTPD_CONF_FILE}"| awk '{print$2}' | head -1)"
|
||||||
else
|
else
|
||||||
_TIMEOUT=60
|
_TIMEOUT=360
|
||||||
fi
|
fi
|
||||||
if [[ -f "${_HTTPD_CONF_FILE}" ]] && $(grep -q -i -E "^\s*ProxyTimeout\s+" "${_HTTPD_CONF_FILE}") ; then
|
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)"
|
PROXY_TIMEOUT="$(grep -i -E "^\s*ProxyTimeout\s+" "${_HTTPD_CONF_FILE}"| awk '{print$2}' | head -1)"
|
||||||
@ -167,10 +167,10 @@ else
|
|||||||
PROXY_TIMEOUT=${_TIMEOUT}
|
PROXY_TIMEOUT=${_TIMEOUT}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
_MAX_EXECUTION_TIME=180
|
_MAX_EXECUTION_TIME=360
|
||||||
if $(is_int "$PROXY_TIMEOUT") ; then
|
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
|
_MAX_EXECUTION_TIME=$PROXY_TIMEOUT
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user