Browse Source

Check MariaDB installation

Checking if MariaDB is installed before trying to install it.

Story: #2005902
Task: #33764

Change-Id: I20eeac76373058eca0c33da11eb1e9dfce91de54
(cherry picked from commit 7df4957949)
changes/11/695911/1
Telles Nobrega 6 months ago
parent
commit
4b9aa37abb
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      sahara/plugins/mapr/resources/images/centos/configure_hue

+ 4
- 1
sahara/plugins/mapr/resources/images/centos/configure_hue 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

Loading…
Cancel
Save