File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
s6-overlay/s6-rc.d/init-mariadb-poststart Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
1
/config/log/mysql/*.log {
2
2
firstaction
3
- /usr/bin/mariadb-admin --local version >/dev/null 2>&1
3
+ /usr/bin/mariadb-admin -uroot - -local version >/dev/null 2>&1
4
4
endscript
5
5
su abc abc
6
6
missingok
18
18
olddir archive/
19
19
createolddir 770 abc abc
20
20
postrotate
21
- /usr/bin/mariadb-admin --local flush-error-log flush-engine-log flush-general-log flush-slow-log
21
+ /usr/bin/mariadb-admin -uroot - -local flush-error-log flush-engine-log flush-general-log flush-slow-log
22
22
endscript
23
23
}
Original file line number Diff line number Diff line change 2
2
# shellcheck shell=bash
3
3
4
4
# check logrotate permissions
5
- if mariadb-admin --local version >/dev/null 2>&1; then
5
+ if mariadb-admin -uroot - -local version >/dev/null 2>&1; then
6
6
echo "Logrotate is enabled"
7
7
else
8
8
cat <<-EOFPASS
You can’t perform that action at this time.
0 commit comments