SHA256
1
0
forked from pool/mariadb
mariadb/mariadb-10.0.15-logrotate-su.patch
Kristyna Streitova a40180b467 Accepting request 676156 from home:tbechtold:branches:server:database
- add slow_query_log example to my.cnf and adjust the logrotate
  configuration to rotate all /var/log/mysql/*.log files .
  This is useful when the slow query log is enabled. In that case,
  this log file should also be rotated (bsc#1112767)

OBS-URL: https://build.opensuse.org/request/show/676156
OBS-URL: https://build.opensuse.org/package/show/server:database/mariadb?expand=0&rev=225
2019-02-15 11:05:43 +00:00

18 lines
503 B
Diff

PATCH-P0-SUSE: Fix for logrorate config
This patch fixes the logrotarte config file for mariadb.
Read more at https://www.novell.com/support/kb/doc.php?id=7005219
Index: support-files/mysql-log-rotate.sh
===================================================================
--- support-files/mysql-log-rotate.sh.orig
+++ support-files/mysql-log-rotate.sh
@@ -20,6 +20,7 @@
/var/log/mysql/*.log {
# create 600 mysql mysql
+ su mysql mysql
notifempty
daily
rotate 3