Merge "Check MariaDB installation"

This commit is contained in:
Zuul 2019-08-12 20:14:12 +00:00 committed by Gerrit Code Review
commit 7c66f91a8b
1 changed files with 4 additions and 1 deletions

View File

@ -3,5 +3,8 @@
echo "Installing mysql compat"
MARIADB_VERSION=$(rpm -qa mariadb | cut -d- -f2)
INSTALLED=$(rpm -qa | grep -i mariadb-compat-${MARIADB_VERSION}-)
rpm -ivh --nodeps http://yum.mariadb.org/$MARIADB_VERSION/rhel7-amd64/rpms/MariaDB-$MARIADB_VERSION-centos73-x86_64-compat.rpm
if [[ -z "$INSTALLED" ]]; then
rpm -ivh --nodeps http://yum.mariadb.org/$MARIADB_VERSION/rhel7-amd64/rpms/MariaDB-$MARIADB_VERSION-centos73-x86_64-compat.rpm
fi