X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=extras%2Fvagrant%2Finstall.sh;h=67a2e4fb990beefe2534d47de18d74d75b526e95;hb=HEAD;hp=a53faa4dd73165cd32f895c07be60c7429eea222;hpb=48009e4c5732180ecc951ac6359b9b96d38b8dc2;p=vpp.git diff --git a/extras/vagrant/install.sh b/extras/vagrant/install.sh old mode 100644 new mode 100755 index a53faa4dd73..67a2e4fb990 --- a/extras/vagrant/install.sh +++ b/extras/vagrant/install.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Get Command Line arguements if present VPP_DIR=$1 @@ -12,7 +12,7 @@ fi if [ -f /etc/lsb-release ];then . /etc/lsb-release elif [ -f /etc/redhat-release ];then - sudo yum install -y redhat-lsb + sudo -E yum install -y redhat-lsb DISTRIB_ID=`lsb_release -si` DISTRIB_RELEASE=`lsb_release -sr` DISTRIB_CODENAME=`lsb_release -sc` @@ -24,7 +24,7 @@ echo DISTRIB_CODENAME: $DISTRIB_CODENAME echo DISTRIB_DESCRIPTION: $DISTRIB_DESCRIPTION if [ $DISTRIB_ID == "Ubuntu" ]; then - (cd ${VPP_DIR}/build-root/;sudo dpkg -i *.deb) + (cd ${VPP_DIR}/build-root/;sudo -E dpkg -i *.deb) elif [ $DISTRIB_ID == "CentOS" ]; then - (cd ${VPP_DIR}/build-root/;sudo rpm -Uvh *.rpm) -fi \ No newline at end of file + (cd ${VPP_DIR}/build-root/;sudo -E rpm -Uvh *.rpm) +fi