From 10e76714439d26d8dae921bea3d5f2f0ed95158e Mon Sep 17 00:00:00 2001 From: Bhavya B Gada <63977213+bhavyabgada@users.noreply.github.com> Date: Sun, 26 May 2024 13:29:23 -0400 Subject: [PATCH] Update README.md >> sudo permissions error on cloud instance --- jenkins/Install/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jenkins/Install/README.md b/jenkins/Install/README.md index 4e71572c..1a5aa798 100755 --- a/jenkins/Install/README.md +++ b/jenkins/Install/README.md @@ -10,8 +10,8 @@ sudo apt-get install -y fontconfig openjdk-17-jre openjdk-17-jdk cd /tmp ; sudo wget https://dlcdn.apache.org/maven/maven-3/3.9.6/binaries/apache-maven-3.9.6-bin.tar.gz cd /tmp ; sudo tar -xzf apache-maven-3.9.6-bin.tar.gz -C /opt/ mv /opt/apache-maven-3.9.6 /opt/maven -sudo echo "MAVEN_HOME=\"/opt/maven\"" >> /etc/profile -sudo echo "PATH=\$MAVEN_HOME/bin:\$PATH" >> /etc/profile +sudo sh -c 'echo "MAVEN_HOME=\"/opt/maven\"" >> /etc/profile' +sudo sh -c 'echo "PATH=\$MAVEN_HOME/bin:\$PATH" >> /etc/profile' source /etc/profile ```` ### Install Jenkins