Skip to content

Commit

Permalink
Only install msodbcsql18 on debian 12 Bookworm (#824)
Browse files Browse the repository at this point in the history
Co-authored-by: Dick Ittmann <[email protected]>
  • Loading branch information
ittmann and DIReports authored Oct 31, 2023
1 parent 578bf3e commit 582be29
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions install-php-extensions
Original file line number Diff line number Diff line change
Expand Up @@ -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]+$'
Expand Down

0 comments on commit 582be29

Please sign in to comment.