Move log file to a directory owned by mysql user

Resolves: #1590369
This commit is contained in:
Honza Horak 2018-07-17 16:39:08 +02:00
parent d9f9c9c58e
commit 12a01a49cf

View File

@ -62,7 +62,7 @@
# We define some system's well known locations here so we can use them easily
# later when building to another location (like SCL)
%global logrotateddir %{_sysconfdir}/logrotate.d
%global logfiledir %{_localstatedir}/log
%global logfiledir %{_localstatedir}/log/%{pkg_name}
%global logfile %{logfiledir}/%{daemon_no_prefix}.log
# Defining where database data live
@ -80,7 +80,7 @@
Name: community-mysql
Version: 8.0.11
Release: 4%{?with_debug:.debug}%{?dist}
Release: 5%{?with_debug:.debug}%{?dist}
Summary: MySQL client programs and shared libraries
URL: http://www.mysql.com
@ -903,6 +903,7 @@ fi
%attr(0750,mysql,mysql) %dir %{_localstatedir}/lib/mysql-files
%attr(0700,mysql,mysql) %dir %{_localstatedir}/lib/mysql-keyring
%attr(0755,mysql,mysql) %dir %{pidfiledir}
%attr(0750,mysql,mysql) %dir %{logfiledir}
%attr(0640,mysql,mysql) %config %ghost %verify(not md5 size mtime) %{logfile}
%config(noreplace) %{logrotateddir}/%{daemon_name}
@ -929,6 +930,10 @@ fi
%endif
%changelog
* Tue Jul 17 2018 Honza Horak <hhorak@redhat.com> - 8.0.11-5
- Move log file to a directory owned by mysql user
Resolves: #1590369
* Thu Jul 12 2018 Honza Horak <hhorak@redhat.com> - 8.0.11-4
- Move mysqld back to /usr/libexec, and create a symlink in /usr/sbin