[debian-mysql] Bug#1001455: mariadb-server logrotate script never includes "defaults-file"
Egerváry Gergely
gergely at egervary.hu
Fri Dec 10 12:45:44 GMT 2021
Package: mariadb-server-10.5
Version: 1:10.5.12-0+deb11u1
In /etc/logrotate.d/mariadb file:
postrotate
if test -x /etc/mysql/debian.cnf
then
EXTRAPARAM='--defaults-file=/etc/mysql/debian.cnf'
fi
...
Please note the "test -x".
/etc/mysql/debian.cnf is a configuration file and should not have
execute bit set on it.
We should have "test -f" or "test -r" in the postrotate section.
Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-mysql-maint/attachments/20211210/465cede8/attachment.htm>
More information about the pkg-mysql-maint
mailing list