Fixed mysql logrotation when mysql root password is set.
This commit is contained in:
parent
76ae752706
commit
f17e3f055e
1 changed files with 1 additions and 0 deletions
|
@ -4,6 +4,7 @@
|
||||||
daily
|
daily
|
||||||
compress
|
compress
|
||||||
postrotate
|
postrotate
|
||||||
|
HOME="`getent passwd ${USER} | cut -d : -f 6`"
|
||||||
mysqladmin flush-logs
|
mysqladmin flush-logs
|
||||||
endscript
|
endscript
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue