Commit 8ac30517 authored by Sergei Golubchik's avatar Sergei Golubchik

MDEV-34384 restorecon call in RPM POSTIN script has hardcoded datadir path

parent 1f28350b
......@@ -71,7 +71,7 @@ if [ -x /usr/sbin/semodule ] ; then
/usr/sbin/semodule -i /usr/share/mysql/policy/selinux/mariadb.pp
fi
if [ -x /sbin/restorecon ] ; then
if [ -x /sbin/restorecon -a -d /var/lib/mysql ] ; then
/sbin/restorecon -R /var/lib/mysql
fi
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment