deb: logrotate - fix my_print_defaults arg

Corrects: 7803601dcb8e40746a10a4012b0c8eb08274db3e
This commit is contained in:
Daniel Black 2020-10-30 15:09:18 +11:00
parent 6d3356c12e
commit 571bcf9aaa

View File

@ -11,7 +11,7 @@
sharedscripts
postrotate
test -x /usr/bin/mysqladmin || exit 0
if [ -f `my_print_defaults --mariadbd | grep -oP "pid-file=\K[^$]+"` ]; then
if [ -f `my_print_defaults --mysqld | grep -oP "pid-file=\K[^$]+"` ]; then
# If this fails, check debian.conf!
mysqladmin --defaults-file=/etc/mysql/debian.cnf --local flush-error-log \
flush-engine-log flush-general-log flush-slow-log