From b6fd5528079817f1d5d8735718e8f275eaf3b65a Mon Sep 17 00:00:00 2001 From: Douglas RAILLARD Date: Wed, 6 Feb 2019 14:14:17 +0000 Subject: [PATCH] install_base_ubuntu: remove use of sudo The caller of the script decides which under which user it has to run, and which tool is used to accomplish that. --- install_base_ubuntu.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install_base_ubuntu.sh b/install_base_ubuntu.sh index f136a9347..560a15e99 100755 --- a/install_base_ubuntu.sh +++ b/install_base_ubuntu.sh @@ -46,10 +46,10 @@ install_nodejs() { # NodeJS v8+ is required, Ubuntu 16.04 LTS supports only an older version. # As a special case we can install it as a snap package if grep 16.04 /etc/lsb-release >/dev/null; then - sudo snap install node --classic --channel=8 + snap install node --classic --channel=8 return fi - sudo apt-get install -y nodejs npm + apt-get install -y nodejs npm } set -eu -- GitLab