Fix rhbz #1149986; follow MySQL upstream and run pre/post scripts as root

Signed-off-by: Bjorn Munch <bjorn.munch@oracle.com>
Signed-off-by: Honza Horak <hhorak@redhat.com>
This commit is contained in:
Bjorn Munch 2014-10-08 16:12:38 +02:00 committed by Honza Horak
parent 1e9e9080b5
commit e29bd9d1cc
2 changed files with 7 additions and 1 deletions

View File

@ -65,7 +65,7 @@
Name: %{pkgname} Name: %{pkgname}
Version: 5.6.21 Version: 5.6.21
Release: 4%{?with_debug:.debug}%{?dist} Release: 5%{?with_debug:.debug}%{?dist}
Summary: MySQL client programs and shared libraries Summary: MySQL client programs and shared libraries
Group: Applications/Databases Group: Applications/Databases
URL: http://www.mysql.com URL: http://www.mysql.com
@ -924,6 +924,9 @@ fi
%endif %endif
%changelog %changelog
* Wed Oct 08 2014 Bjorn Munch <bjorn.munch@oracle.com> - 5.6.21-5
- Fix rhbz #1149986
* Wed Oct 01 2014 Honza Horak <hhorak@redhat.com> - 5.6.21-4 * Wed Oct 01 2014 Honza Horak <hhorak@redhat.com> - 5.6.21-4
- Add bcond_without mysql_names - Add bcond_without mysql_names

View File

@ -32,6 +32,9 @@ Type=simple
User=mysql User=mysql
Group=mysql Group=mysql
# Execute pre and post scripts as root
PermissionsStartOnly=true
ExecStartPre=@libexecdir@/mysql-check-socket ExecStartPre=@libexecdir@/mysql-check-socket
ExecStartPre=@libexecdir@/mysql-prepare-db-dir %n ExecStartPre=@libexecdir@/mysql-prepare-db-dir %n
# Note: we set --basedir to prevent probes that might trigger SELinux alarms, # Note: we set --basedir to prevent probes that might trigger SELinux alarms,