hs-test: fixed timed out tests passing in the CI
[vpp.git] / extras / vagrant / install.sh
old mode 100644 (file)
new mode 100755 (executable)
index a53faa4..67a2e4f
@@ -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