From: Dileep Ranganathan Date: Mon, 30 Jul 2018 22:50:12 +0000 (-0700) Subject: Added missing sudo privileges X-Git-Tag: v1.2.0~1 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=fd43ca256b21606c64d1463a3cd024fbf73b4a54;p=optf%2Fhas.git Added missing sudo privileges Added the missing sudo privilieges required to install packages Change-Id: I998decc0f8a20cc6575564c12f7e0dcb278802a5 Issue-ID: OPTFRA-301 Signed-off-by: Dileep Ranganathan --- diff --git a/build-dockers.sh b/build-dockers.sh index 91a2e09..0b02b32 100755 --- a/build-dockers.sh +++ b/build-dockers.sh @@ -33,7 +33,7 @@ function log_ts() { # Log message with timestamp function get_artifact_version() { log_ts Get Maven Artifact version from pom.xml - apt-get install libxml2-utils + sudo apt-get install libxml2-utils MVN_ARTIFACT_VERSION=`echo -e "setns x=http://maven.apache.org/POM/4.0.0 \n xpath /x:project/x:version/text() "| xmllint --shell conductor/pom.xml | grep content | sed 's/.*content=//'` log_ts Maven artifact version for HAS is $MVN_ARTIFACT_VERSION if [[ "$MVN_ARTIFACT_VERSION" =~ SNAPSHOT ]]; then