Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
hs-test: more debug output in http3 test
[vpp.git]
/
extras
/
vagrant
/
install.sh
diff --git
a/extras/vagrant/install.sh
b/extras/vagrant/install.sh
old mode 100644
(file)
new mode 100755
(executable)
index
a53faa4
..
67a2e4f
--- 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
# 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
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`
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
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
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