<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Package: mariadb-server-10.5<br>
Version: 1:10.5.12-0+deb11u1</p>
<p>In /etc/logrotate.d/mariadb file:</p>
<p> postrotate<br>
if test -x /etc/mysql/debian.cnf<br>
then<br>
EXTRAPARAM='--defaults-file=/etc/mysql/debian.cnf'<br>
fi<br>
</p>
<p> ...</p>
<p>Please note the "test -x". <br>
/etc/mysql/debian.cnf is a configuration file and should not have
execute bit set on it.</p>
<p>We should have "test -f" or "test -r" in the postrotate section.</p>
<p>Thanks.</p>
<br>
</body>
</html>