[mariadb] Do not touch the log file in post script, so it does not get wrong owner Resolves: #1061045

Honza Horak hhorak at fedoraproject.org
Thu Feb 6 13:11:11 UTC 2014


commit 64e1dc37c7c69909d4665b0a51cec619756398f7
Author: Honza Horak <hhorak at redhat.com>
Date:   Wed Feb 5 12:03:57 2014 +0100

    Do not touch the log file in post script, so it does not get wrong owner
    Resolves: #1061045

 mariadb.spec |    9 +++------
 1 files changed, 3 insertions(+), 6 deletions(-)
---
diff --git a/mariadb.spec b/mariadb.spec
index 91b95d9..d8c5076 100644
--- a/mariadb.spec
+++ b/mariadb.spec
@@ -7,7 +7,7 @@
 
 Name: mariadb
 Version: 5.5.35
-Release: 2%{?dist}
+Release: 3%{?dist}
 Epoch: 1
 
 Summary: A community developed branch of MySQL
@@ -574,9 +574,6 @@ fi
 %post server
 %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}
@@ -805,8 +802,8 @@ 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
+* Wed Feb  5 2014 Honza Horak <hhorak at redhat.com> 1:5.5.35-3
+- Do not touch the log file in post script, so it does not get wrong owner
   Resolves: #1061045
 
 * Thu Jan 30 2014 Honza Horak <hhorak at redhat.com> 1:5.5.35-1


More information about the scm-commits mailing list