From e29bd9d1cc73832ab6a129102df8b5e08590b91a Mon Sep 17 00:00:00 2001 From: Bjorn Munch Date: Wed, 8 Oct 2014 16:12:38 +0200 Subject: [PATCH] Fix rhbz #1149986; follow MySQL upstream and run pre/post scripts as root Signed-off-by: Bjorn Munch Signed-off-by: Honza Horak --- community-mysql.spec | 5 ++++- mysql.service.in | 3 +++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/community-mysql.spec b/community-mysql.spec index 10912bc..114154c 100644 --- a/community-mysql.spec +++ b/community-mysql.spec @@ -65,7 +65,7 @@ Name: %{pkgname} Version: 5.6.21 -Release: 4%{?with_debug:.debug}%{?dist} +Release: 5%{?with_debug:.debug}%{?dist} Summary: MySQL client programs and shared libraries Group: Applications/Databases URL: http://www.mysql.com @@ -924,6 +924,9 @@ fi %endif %changelog +* Wed Oct 08 2014 Bjorn Munch - 5.6.21-5 +- Fix rhbz #1149986 + * Wed Oct 01 2014 Honza Horak - 5.6.21-4 - Add bcond_without mysql_names diff --git a/mysql.service.in b/mysql.service.in index a33df16..2f09a0a 100644 --- a/mysql.service.in +++ b/mysql.service.in @@ -32,6 +32,9 @@ Type=simple User=mysql Group=mysql +# Execute pre and post scripts as root +PermissionsStartOnly=true + ExecStartPre=@libexecdir@/mysql-check-socket ExecStartPre=@libexecdir@/mysql-prepare-db-dir %n # Note: we set --basedir to prevent probes that might trigger SELinux alarms,