mod_php_install.sh: suport php 7.0 at debian 10

This commit is contained in:
Christoph 2019-10-20 23:26:24 +02:00
parent c49065a61b
commit fbad17420b

View File

@ -886,7 +886,8 @@ if ([[ "$PHP_MAJOR_VERSION" -eq 7 ]] && [[ "$PHP_MINOR_VERSION" -lt 4 ]]) \
_install_freetype=true
if [[ "$PHP_MAJOR_VERSION" -lt 7 ]] ; then
if [[ "$PHP_MAJOR_VERSION" -lt 7 ]] \
|| ([[ "$PHP_MAJOR_VERSION" -eq 7 ]] && [[ "$PHP_MINOR_VERSION" -eq 0 ]]) ; then
echo ""
echo ""
@ -2105,7 +2106,8 @@ else
fi
fi
if [[ "$PHP_MAJOR_VERSION" -eq "5" ]] && [[ "$os_dist" = "debian" ]] && [[ $os_version -ge 10 ]]; then
if ([[ "$PHP_MAJOR_VERSION" -eq "5" ]] || ([[ "$PHP_MAJOR_VERSION" -eq "7" ]] && [[ "$PHP_MINOR_VERSION" -eq 0 ]])) \
&& [[ "$os_dist" = "debian" ]] && [[ $os_version -ge 10 ]]; then
config_params="$config_params \
--with-icu-dir=/usr/local/icu4c \
--with-libxml-dir=/usr/local/libxml2"