mirror of
https://github.com/actions/runner-images.git
synced 2025-12-11 03:27:05 +00:00
* Add MS SQL Tools version * Minor fix * Move MS SQL tools installation to separated file * Minor fix * accept yula
18 lines
661 B
Bash
18 lines
661 B
Bash
#!/bin/bash -e
|
|
################################################################################
|
|
## File: mssql-cmd-tools.sh
|
|
## Desc: Install MS SQL Server client tools (https://docs.microsoft.com/en-us/sql/linux/sql-server-linux-setup-tools?view=sql-server-2017)
|
|
################################################################################
|
|
|
|
export ACCEPT_EULA=Y
|
|
|
|
apt-get update
|
|
apt-get install -y mssql-tools unixodbc-dev
|
|
apt-get -f install
|
|
ln -s /opt/mssql-tools/bin/* /usr/local/bin/
|
|
|
|
echo "Testing to make sure that script performed as expected, and basic scenarios work"
|
|
if ! command -v sqlcmd; then
|
|
echo "sqlcmd was not installed"
|
|
exit 1
|
|
fi |