X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=functions.sh;fp=functions.sh;h=4eaa2812801c1fc960e3265ba525d9eb6849ee7d;hb=f845220cd17f89c8e1c68aecb3f0c7e82a56aa03;hp=63f1490749d21266c617f40f935167016baee9a7;hpb=3c59b039817a4f87e081f7d968c2172cd8d00bf8;p=kuberef.git diff --git a/functions.sh b/functions.sh index 63f1490..4eaa281 100755 --- a/functions.sh +++ b/functions.sh @@ -69,7 +69,7 @@ check_prerequisites() { #------------------------------------------------------------------------------- if [ "$OS_ID" == "ubuntu" ]; then - apt update + sudo apt update -y ansible --version RESULT=$? if [ $RESULT -ne 0 ]; then @@ -109,7 +109,7 @@ check_prerequisites() { elif [ "$OS_ID" == "centos" ]; then - yum update + sudo yum update -y ansible --version RESULT=$? if [ $RESULT -ne 0 ]; then