summaryrefslogtreecommitdiff
path: root/support-files/rpm
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2017-02-23 10:34:51 +0100
committerSergei Golubchik <serg@mariadb.org>2017-02-27 12:35:10 +0100
commit2c354e7468395f87a68833e4c048fdfa2be344d1 (patch)
tree621d3dfb42105ef9a43f81d778911ac4c87cbd19 /support-files/rpm
parent713d513624a05c8ba4e5c87d90300cc9bce4e015 (diff)
downloadmariadb-git-2c354e7468395f87a68833e4c048fdfa2be344d1.tar.gz
MDEV-11789 MariaDB fails to restart after 10.0.29-1.el7 update
Diffstat (limited to 'support-files/rpm')
-rw-r--r--support-files/rpm/server-postin.sh9
1 files changed, 4 insertions, 5 deletions
diff --git a/support-files/rpm/server-postin.sh b/support-files/rpm/server-postin.sh
index d9f06fa43b8..2275d4acc7b 100644
--- a/support-files/rpm/server-postin.sh
+++ b/support-files/rpm/server-postin.sh
@@ -80,11 +80,10 @@ if [ -f /etc/redhat-release ] ; then
echo
echo
fi
- if grep 'CentOS release 6' /etc/redhat-release >/dev/null 2>&1; then
- if [ -x /usr/sbin/semodule ] ; then
- /usr/sbin/semodule -i /usr/share/mysql/SELinux/mariadb.pp
- fi
- fi
+fi
+
+if [ -x /usr/sbin/semodule ] ; then
+ /usr/sbin/semodule -i /usr/share/mysql/SELinux/mariadb.pp
fi
if [ -x sbin/restorecon ] ; then