From 76ae752706ec039a5e20b076f4bb08dcd0d123f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timo=20M=E4kinen?= Date: Thu, 28 Jun 2012 14:25:25 +0300 Subject: [PATCH] Fixed mysqlreport cron when mysql root has password set. --- mysql/files/mysql-report.cron | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mysql/files/mysql-report.cron b/mysql/files/mysql-report.cron index cd3cbb0..48aa9cd 100644 --- a/mysql/files/mysql-report.cron +++ b/mysql/files/mysql-report.cron @@ -1,4 +1,6 @@ #!/bin/sh +HOME="`getent passwd ${USER} | cut -d : -f 6`" + mysqlreport > /var/log/mysql-report/`date +%Y-%m-%d` 2> /dev/null tmpwatch 720 /var/log/mysql-report