[mariadb] Fix owner and permission of log file in post script Resolves: #1061045
Honza Horak
hhorak at fedoraproject.org
Wed Feb 5 10:50:51 UTC 2014
commit 6d5ecbd3023dd928b5ab4746e6fceaa23cc492c0
Author: Honza Horak <hhorak at redhat.com>
Date: Wed Feb 5 10:40:44 2014 +0100
Fix owner and permission of log file in post script
Resolves: #1061045
mariadb.spec | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/mariadb.spec b/mariadb.spec
index ddcfa22..91b95d9 100644
--- a/mariadb.spec
+++ b/mariadb.spec
@@ -7,7 +7,7 @@
Name: mariadb
Version: 5.5.35
-Release: 1%{?dist}
+Release: 2%{?dist}
Epoch: 1
Summary: A community developed branch of MySQL
@@ -575,6 +575,8 @@ fi
%systemd_post mariadb.service
/bin/chmod 0755 %{_localstatedir}/lib/mysql
/bin/touch %{_localstatedir}/log/mariadb/mariadb.log
+/bin/chmod 0640 %{_localstatedir}/log/mariadb/mariadb.log
+/bin/chown mysql:mysql %{_localstatedir}/log/mariadb/mariadb.log
%{_sbindir}/update-alternatives --install %{_bindir}/mysqlbug \
mysqlbug %{_libdir}/mysql/mysqlbug %{__isa_bits}
@@ -803,6 +805,10 @@ fi
%{_mandir}/man1/mysql_client_test.1*
%changelog
+* Wed Feb 5 2014 Honza Horak <hhorak at redhat.com> 1:5.5.35-2
+- Fix owner and permission of log file in post script
+ Resolves: #1061045
+
* Thu Jan 30 2014 Honza Horak <hhorak at redhat.com> 1:5.5.35-1
- Rebase to 5.5.35
https://kb.askmonty.org/en/mariadb-5535-changelog/
More information about the scm-commits
mailing list