deb: logrotate - fix my_print_defaults arg
Corrects: 7803601dcb8e40746a10a4012b0c8eb08274db3e
This commit is contained in:
parent
6d3356c12e
commit
571bcf9aaa
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user