sahara-plugin-mapr/sahara_plugin_mapr/plugins/mapr/resources/images/centos/configure_hue

11 lines
330 B
Bash

#!/bin/bash
echo "Installing mysql compat"
MARIADB_VERSION=$(rpm -qa mariadb | cut -d- -f2)
INSTALLED=$(rpm -qa | grep -i mariadb-compat-${MARIADB_VERSION}-)
if [[ -z "$INSTALLED" ]]; then
rpm -ivh --nodeps http://yum.mariadb.org/$MARIADB_VERSION/rhel7-amd64/rpms/MariaDB-compat-$MARIADB_VERSION-1.el7.centos.x86_64.rpm
fi