Install msodbcsql18 alone on Debian 11 (#525)
* Install msodbcsql18 alone on Debian 11 * Updgrade msodbcsql from 17.8 to 17.9 on Alpine with PHP <= 7.3 * pdo_sqlsrv and sqlsrv now work on Debian Bullseye with PHP 7.3pull/530/head
parent
5fab1d04c3
commit
4667f174e7
|
@ -1,6 +1,6 @@
|
|||
parallel zts
|
||||
pdo_sqlsrv !alpine3.7 !alpine3.8 !7.3-bullseye
|
||||
pdo_sqlsrv !alpine3.7 !alpine3.8
|
||||
pthreads zts
|
||||
sqlsrv !alpine3.7 !alpine3.8 !7.1-alpine3.9 !7.1-alpine3.10 !7.3-bullseye
|
||||
sqlsrv !alpine3.7 !alpine3.8 !7.1-alpine3.9 !7.1-alpine3.10
|
||||
tensor !alpine3.15
|
||||
vips !alpine3.7 !alpine3.8 !alpine3.9 !jessie
|
||||
|
|
|
@ -1557,7 +1557,7 @@ installMicrosoftSqlServerODBC() {
|
|||
# https://docs.microsoft.com/en-us/sql/connect/odbc/linux-mac/installing-the-microsoft-odbc-driver-for-sql-server#alpine17
|
||||
rm -rf /tmp/src/msodbcsql.apk
|
||||
if test $PHP_MAJMIN_VERSION -le 703; then
|
||||
curl -sSLf -o /tmp/src/msodbcsql.apk https://download.microsoft.com/download/e/4/e/e4e67866-dffd-428c-aac7-8d28ddafb39b/msodbcsql17_17.8.1.1-1_amd64.apk
|
||||
curl -sSLf -o /tmp/src/msodbcsql.apk https://download.microsoft.com/download/e/4/e/e4e67866-dffd-428c-aac7-8d28ddafb39b/msodbcsql17_17.9.1.1-1_amd64.apk
|
||||
else
|
||||
curl -sSLf -o /tmp/src/msodbcsql.apk https://download.microsoft.com/download/b/9/f/b9f3cce4-3925-46d4-9f46-da08869c6486/msodbcsql18_18.0.1.1-1_amd64.apk
|
||||
fi
|
||||
|
@ -1581,8 +1581,8 @@ installMicrosoftSqlServerODBC() {
|
|||
printf -- '- installing the APT package\n'
|
||||
if test $PHP_MAJMIN_VERSION -le 703; then
|
||||
DEBIAN_FRONTEND=noninteractive ACCEPT_EULA=Y apt-get -qy --no-install-recommends install msodbcsql17
|
||||
elif test $DISTRO_VERSION_NUMBER -ge 9 && $DISTRO_VERSION_NUMBER -le 10; then
|
||||
# On Debian 9 and 10 we have both msodbcsql17 and msodbcsql18: let's install just one
|
||||
elif test $DISTRO_VERSION_NUMBER -ge 9 && $DISTRO_VERSION_NUMBER -le 11; then
|
||||
# On Debian 9 and 11 we have both msodbcsql17 and msodbcsql18: let's install just one
|
||||
DEBIAN_FRONTEND=noninteractive ACCEPT_EULA=Y apt-get -qy --no-install-recommends install msodbcsql18
|
||||
else
|
||||
DEBIAN_FRONTEND=noninteractive ACCEPT_EULA=Y apt-get -qy --no-install-recommends install '^msodbcsql[0-9]+$'
|
||||
|
|
Loading…
Reference in New Issue