Code Review
/
csit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
VIRL test: Dot1Q-L2BD-vhost_user test (CSIT-502)
[csit.git]
/
bootstrap-hc2vpp-integration.sh
diff --git
a/bootstrap-hc2vpp-integration.sh
b/bootstrap-hc2vpp-integration.sh
index
e8c0d5e
..
eec9eef
100755
(executable)
--- a/
bootstrap-hc2vpp-integration.sh
+++ b/
bootstrap-hc2vpp-integration.sh
@@
-150,8
+150,13
@@
for index in "${!VIRL_SERVER[@]}"; do
if [ "${copy}" -eq "0" ]; then
echo "files have already been copied to the VIRL host ${VIRL_SERVER[${index}]}"
else
if [ "${copy}" -eq "0" ]; then
echo "files have already been copied to the VIRL host ${VIRL_SERVER[${index}]}"
else
- scp ${SSH_OPTIONS} *.deb *.rpm \
- ${VIRL_USERNAME}@${VIRL_SERVER[${index}]}:${VIRL_DIR_LOC}/
+ if [ "${OS}" == "centos7" ]; then
+ scp ${SSH_OPTIONS} *.rpm \
+ ${VIRL_USERNAME}@${VIRL_SERVER[${index}]}:${VIRL_DIR_LOC}/
+ else
+ scp ${SSH_OPTIONS} *.deb \
+ ${VIRL_USERNAME}@${VIRL_SERVER[${index}]}:${VIRL_DIR_LOC}/
+ fi
result=$?
if [ "${result}" -ne "0" ]; then
echo "Failed to copy files to VIRL host ${VIRL_SERVER[${index}]}"
result=$?
if [ "${result}" -ne "0" ]; then
echo "Failed to copy files to VIRL host ${VIRL_SERVER[${index}]}"