summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2019-06-08 21:56:43 -0700
committerTim Smith <tsmith@chef.io>2019-06-08 21:56:43 -0700
commit404c18b448bf5491a32b7c7e0c6c42bc83fee037 (patch)
tree8bc33a00d5c6363563acb188e4e139d7dcc9995d
parent44c6cdb580d1e422472d9201765ee27de2da70b4 (diff)
downloadchef-404c18b448bf5491a32b7c7e0c6c42bc83fee037.tar.gz
Make sure we have the interfaces.d directory on Ubuntu
Signed-off-by: Tim Smith <tsmith@chef.io>
-rwxr-xr-xscripts/bk_tests/bk_container_prep.sh7
1 files changed, 4 insertions, 3 deletions
diff --git a/scripts/bk_tests/bk_container_prep.sh b/scripts/bk_tests/bk_container_prep.sh
index 3b0e68efb0..4e5a4eb435 100755
--- a/scripts/bk_tests/bk_container_prep.sh
+++ b/scripts/bk_tests/bk_container_prep.sh
@@ -2,10 +2,11 @@
# make sure we have the network tools in place for various network specs
if [ -f /etc/debian_version ]; then
- apt-get update -y && apt-get install -y net-tools iproute2
- touch /etc/network/interfaces
+ apt-get update -y && apt-get install -y net-tools iproute2
+ mkdir -p /etc/network/interfaces.d
+ touch /etc/network/interfaces
else
- yum install -y net-tools
+ yum install -y net-tools
fi
# make sure we have the omnibus_overrides specified version of rubygems / bundler