datahub/metadata-ingestion/scripts/install_odbc_for_mssql_tests.sh
sleeperdeep 73a351f92f
feat(mssql): quote_schemas & odbc_connect fields with related logic were added to SQLServerConfig (#13771)
Co-authored-by: Sergio Gómez Villamor <sgomezvillamor@gmail.com>
2025-08-29 18:16:19 +00:00

23 lines
595 B
Bash
Executable File

#!/bin/bash
UBUNTU_VERSION=$(grep VERSION_ID /etc/os-release | cut -d '"' -f 2)
if ! [[ "20.04 22.04 24.04 24.10" == *"$UBUNTU_VERSION"* ]];
then
echo "Ubuntu $UBUNTU_VERSION is not currently supported.";
exit;
fi
sudo su
# Download the package to configure the Microsoft repo
curl -sSL -O https://packages.microsoft.com/config/ubuntu/$UBUNTU_VERSION/packages-microsoft-prod.deb
# Install the package
sudo dpkg -i packages-microsoft-prod.deb
# Delete the file
rm packages-microsoft-prod.deb
# Install the driver
sudo apt-get update
sudo ACCEPT_EULA=Y apt-get install -y msodbcsql18