1
0
Fork 0
mirror of https://github.com/mlocati/docker-php-extension-installer synced 2025-05-09 08:32:42 +00:00

Don't use apt-get add on Debian Bullseye

This commit is contained in:
Michele Locati 2021-08-25 09:05:17 +02:00
parent 89263593b5
commit f40863af77
No known key found for this signature in database
GPG key ID: 98B7CE2E7234E28B

View file

@ -1385,7 +1385,12 @@ installMicrosoftSqlServerODBC() {
debian)
# https://docs.microsoft.com/en-us/sql/connect/odbc/linux-mac/installing-the-microsoft-odbc-driver-for-sql-server#debian17
printf -- '- installing the Microsoft APT key\n'
curl -sSLf https://packages.microsoft.com/keys/microsoft.asc | apt-key add -
if test $DISTRO_VERSION_NUMBER -ge 11; then
# apt-key is deprecated
curl -sSLf -o /etc/apt/trusted.gpg.d/microsoft.asc https://packages.microsoft.com/keys/microsoft.asc
else
curl -sSLf https://packages.microsoft.com/keys/microsoft.asc | apt-key add -
fi
if ! test -f /etc/apt/sources.list.d/mssql-release.list; then
printf -- '- adding the Microsoft APT source list\n'
curl -sSLf https://packages.microsoft.com/config/debian/$DISTRO_VERSION_NUMBER/prod.list >/etc/apt/sources.list.d/mssql-release.list