Skip to content

Commit

Permalink
updated root commands
Browse files Browse the repository at this point in the history
  • Loading branch information
IPdotSetAF committed Nov 15, 2024
1 parent f9d7bb3 commit aa46e6f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ jobs:
with:
python-version: 3.11.4
- run: pip install -r Tools/mssql-proxy/requirements.txt pyinstaller
- run: sudo ./Tools/mssql-proxy/odbc-driver-installer.sh
- run: ./Tools/mssql-proxy/odbc-driver-installer.sh
- run: pyinstaller mssql-proxy.linux.spec
working-directory: Tools/mssql-proxy
- run: tar -czf mssql-proxy-${{ github.ref_name }}-linux.tar.gz Tools/mssql-proxy/dist
Expand Down
4 changes: 2 additions & 2 deletions Tools/mssql-proxy/odbc-driver-installer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ if [ "$os" == "alpine" ]; then
fi
elif [ "$os" == "ubuntu" ]; then
echo "Installing packages for Ubuntu..."
if ! apt-get update || ! apt-get install -y unixodbc unixodbc-dev curl gnupg; then
if ! sudo apt-get update || ! sudo apt-get install -y unixodbc unixodbc-dev curl gnupg; then
echo "Installation of packages failed on Ubuntu." >&2
exit 1
fi
Expand All @@ -52,7 +52,7 @@ elif [ "$os" == "ubuntu" ]; then
curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add -
curl https://packages.microsoft.com/config/ubuntu/$(lsb_release -rs)/prod.list > /etc/apt/sources.list.d/mssql-release.list
apt-get update
ACCEPT_EULA=Y apt-get install -y msodbcsql18
ACCEPT_EULA=Y sudo apt-get install -y msodbcsql18
else
echo "Failed to handle msodbcsql18 installation for $os."
exit 1
Expand Down

0 comments on commit aa46e6f

Please sign in to comment.