From aa46e6fd50de1df1e9770135fb2e62a5063fc24f Mon Sep 17 00:00:00 2001 From: IPdotSetAF Date: Sat, 16 Nov 2024 00:48:33 +0330 Subject: [PATCH] updated root commands --- .github/workflows/build-release.yml | 2 +- Tools/mssql-proxy/odbc-driver-installer.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-release.yml b/.github/workflows/build-release.yml index 8d2f05e..845f625 100644 --- a/.github/workflows/build-release.yml +++ b/.github/workflows/build-release.yml @@ -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 diff --git a/Tools/mssql-proxy/odbc-driver-installer.sh b/Tools/mssql-proxy/odbc-driver-installer.sh index bfbde06..63c61b6 100755 --- a/Tools/mssql-proxy/odbc-driver-installer.sh +++ b/Tools/mssql-proxy/odbc-driver-installer.sh @@ -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 @@ -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