diff --git a/mysql.init b/mysql.init index c4b1187..e7ce034 100644 --- a/mysql.init +++ b/mysql.init @@ -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=$? diff --git a/mysql.spec b/mysql.spec index b1897e0..96180f1 100644 --- a/mysql.spec +++ b/mysql.spec @@ -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 4.1.7-5 +- Add a restorecon to keep the mysql.log file in the right context + * Tue Nov 23 2004 Tom Lane 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).