Preload soci-mysql and soci on RHEL7 images

Change-Id: I00d78b45dffd785e956058ca7d76fb9e32bfac60
Closes-bug: #1754313
(cherry picked from commit 859baa5b0a)
This commit is contained in:
Elise Gafford 2017-02-16 12:36:10 -05:00 committed by Luigi Toscano
parent e3573b7c7a
commit 1409fb6583
1 changed files with 13 additions and 0 deletions

View File

@ -0,0 +1,13 @@
#!/bin/bash
if [ "${DIB_DEBUG_TRACE:-0}" -gt 0 ]; then
set -x
fi
set -eu
set -o pipefail
if [ "$DISTRO_NAME" = "rhel7" -o "$DISTRO_NAME" = "centos7" ]; then
yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
yum install -y soci soci-mysql
yum remove -y epel-release
fi