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/18/676018/1
Telles Nobrega 1 month ago
parent
commit
1f92ebb034

+ 4
- 1
sahara_plugin_mapr/plugins/mapr/resources/images/centos/configure_hue View File

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

Loading…
Cancel
Save