Skip to content

Commit

Permalink
fix: fix mssql install scripts by forcing debian/11 deb repo (#1248)
Browse files Browse the repository at this point in the history
  • Loading branch information
fspot authored Oct 24, 2023
1 parent 3d7752a commit 3c9e69e
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@

- S3: Add a new AWS S3 connector using the Security Token Service (STS) API Assume Role.

### Fixed

- Install scripts: fix mssql install scripts by forcing debian/11 deb repo

### [4.7.3] 2023-08-22

### Fixed
Expand Down
11 changes: 9 additions & 2 deletions toucan_connectors/install_scripts/mssql.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,16 @@ fi
apt-get update
apt-get install -fyq gnupg curl
curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add -
source /etc/os-release &&\

source /etc/os-release
if [ "$ID" == "debian" ]; then
# debian/12 fails - fixing to debian/11 works:
curl "https://packages.microsoft.com/config/debian/11/prod.list" \
| tee /etc/apt/sources.list.d/mssql-release.list
else
curl "https://packages.microsoft.com/config/${ID}/${VERSION_ID}/prod.list" \
| tee /etc/apt/sources.list.d/mssql-release.list
| tee /etc/apt/sources.list.d/mssql-release.list
fi
apt-get update
ACCEPT_EULA=Y apt-get -y install msodbcsql17 unixodbc-dev

Expand Down
10 changes: 8 additions & 2 deletions toucan_connectors/install_scripts/mssql_TLSv1_0.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,15 @@ fi
apt-get update
apt-get install -fyq gnupg curl
curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add -
source /etc/os-release &&\
source /etc/os-release
if [ "$ID" == "debian" ]; then
# debian/12 fails - fixing to debian/11 works:
curl "https://packages.microsoft.com/config/debian/11/prod.list" \
| tee /etc/apt/sources.list.d/mssql-release.list
else
curl "https://packages.microsoft.com/config/${ID}/${VERSION_ID}/prod.list" \
| tee /etc/apt/sources.list.d/mssql-release.list
| tee /etc/apt/sources.list.d/mssql-release.list
fi
apt-get update
ACCEPT_EULA=Y apt-get -y install msodbcsql17 unixodbc-dev

Expand Down

0 comments on commit 3c9e69e

Please sign in to comment.