Fixed mysqlreport cron when mysql root has password set.
This commit is contained in:
parent
31434a1b0b
commit
76ae752706
1 changed files with 2 additions and 0 deletions
|
@ -1,4 +1,6 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
|
HOME="`getent passwd ${USER} | cut -d : -f 6`"
|
||||||
|
|
||||||
mysqlreport > /var/log/mysql-report/`date +%Y-%m-%d` 2> /dev/null
|
mysqlreport > /var/log/mysql-report/`date +%Y-%m-%d` 2> /dev/null
|
||||||
tmpwatch 720 /var/log/mysql-report
|
tmpwatch 720 /var/log/mysql-report
|
||||||
|
|
Loading…
Add table
Reference in a new issue