From 4b580c3c24aa065c90ecb19a03780307a84ac41d Mon Sep 17 00:00:00 2001 From: Steve <3835734+stevebanik@users.noreply.github.com> Date: Tue, 27 Apr 2021 13:27:55 -0500 Subject: [PATCH] Update linux.md Privilege elevation only applies to the curl process itself, not to the parent shell, and therefore not to the redirection. It's better to do the redirection within the child shell itself, especially for an easy cut/paste. --- doc/installation/linux.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/installation/linux.md b/doc/installation/linux.md index bcc5d748..5fc99f15 100644 --- a/doc/installation/linux.md +++ b/doc/installation/linux.md @@ -116,7 +116,7 @@ To uninstall mssql-cli, call `sudo apt-get remove mssql-cli`. sudo rpm --import https://packages.microsoft.com/keys/microsoft.asc # Register the Microsoft product feed -curl https://packages.microsoft.com/config/centos/7/prod.repo > /etc/yum.repos.d/msprod.repo +sudo bash -c "curl https://packages.microsoft.com/config/centos/7/prod.repo > /etc/yum.repos.d/msprod.repo" # Install dependencies and mssql-cli sudo yum install libunwind @@ -129,7 +129,7 @@ sudo yum install mssql-cli sudo rpm --import https://packages.microsoft.com/keys/microsoft.asc # Register the Microsoft product feed -curl https://packages.microsoft.com/config/centos/8/prod.repo > /etc/yum.repos.d/msprod.repo +sudo bash -c "curl https://packages.microsoft.com/config/centos/8/prod.repo > /etc/yum.repos.d/msprod.repo" # Install dependencies and mssql-cli sudo yum install libunwind