From 582be29f3fd930e716ea2691311188feffac492e Mon Sep 17 00:00:00 2001 From: Dick Ittmann Date: Tue, 31 Oct 2023 16:35:19 +0100 Subject: [PATCH] Only install msodbcsql18 on debian 12 Bookworm (#824) Co-authored-by: Dick Ittmann --- install-php-extensions | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install-php-extensions b/install-php-extensions index 844bdea..a57219a 100755 --- a/install-php-extensions +++ b/install-php-extensions @@ -2037,8 +2037,8 @@ installMicrosoftSqlServerODBC() { printf -- '- installing the APT package\n' if test $PHP_MAJMIN_VERSION -le 703; then DEBIAN_FRONTEND=noninteractive ACCEPT_EULA=Y apt-get install -qqy --no-install-recommends $IPE_APTGET_INSTALLOPTIONS msodbcsql17 - elif test $DISTRO_VERSION_NUMBER -ge 9 && test $DISTRO_VERSION_NUMBER -le 11; then - # On Debian 9 and 11 we have both msodbcsql17 and msodbcsql18: let's install just one + elif test $DISTRO_VERSION_NUMBER -ge 9 && test $DISTRO_VERSION_NUMBER -le 12; then + # On Debian 9 to 12 we have both msodbcsql17 and msodbcsql18: let's install just one DEBIAN_FRONTEND=noninteractive ACCEPT_EULA=Y apt-get install -qqy --no-install-recommends $IPE_APTGET_INSTALLOPTIONS msodbcsql18 else DEBIAN_FRONTEND=noninteractive ACCEPT_EULA=Y apt-get install -qqy --no-install-recommends $IPE_APTGET_INSTALLOPTIONS '^msodbcsql[0-9]+$'