Add restorecon incase the log file gets deleted and recreated.
This commit is contained in:
parent
d317acda8a
commit
e5953bdf85
@ -24,6 +24,7 @@ start(){
|
||||
touch /var/log/mysqld.log
|
||||
chown mysql:mysql /var/log/mysqld.log
|
||||
chmod 0640 /var/log/mysqld.log
|
||||
[ -x /sbin/restorecon ] && /sbin/restorecon /var/log/mysqld.log
|
||||
if [ ! -d $datadir/mysql ] ; then
|
||||
action $"Initializing MySQL database: " /usr/bin/mysql_install_db
|
||||
ret=$?
|
||||
|
@ -1,6 +1,6 @@
|
||||
Name: mysql
|
||||
Version: 4.1.7
|
||||
Release: 4
|
||||
Release: 5
|
||||
Source0: http://dev.mysql.com/get/Downloads/MySQL-4.1/mysql-%{version}.tar.gz
|
||||
Source1: mysql.init
|
||||
Source2: mysql.logrotate
|
||||
@ -351,6 +351,9 @@ fi
|
||||
%{_datadir}/sql-bench
|
||||
|
||||
%changelog
|
||||
* Thu Dec 2 2004 Tom Lane <tgl@redhat.com> 4.1.7-5
|
||||
- Add a restorecon to keep the mysql.log file in the right context
|
||||
|
||||
* Tue Nov 23 2004 Tom Lane <tgl@redhat.com> 4.1.7-4
|
||||
- Turn off old_passwords in default /etc/my.cnf file, for better compatibility
|
||||
with mysql 3.x clients (per suggestion from Joe Orton).
|
||||
|
Loading…
Reference in New Issue
Block a user