Skip to content

Commit f1742c4

Browse files
committed
Fix logs
1 parent bb28a9d commit f1742c4

File tree

2 files changed

+3
-3
lines changed
  • root/etc
    • logrotate.d
    • s6-overlay/s6-rc.d/init-mariadb-poststart

2 files changed

+3
-3
lines changed

root/etc/logrotate.d/mariadb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
/config/log/mysql/*.log /config/log/mysql/*.err {
1+
/config/log/mysql/*.log /config/databases/*.err {
22
firstaction
3-
/usr/bin/mariadb-admin --local version 2> /dev/null
3+
/usr/bin/mariadb-admin --local version >/dev/null 2>&1
44
endscript
55
su abc abc
66
missingok

root/etc/s6-overlay/s6-rc.d/init-mariadb-poststart/run

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# shellcheck shell=bash
33

44
# check logrotate permissions
5-
if mariadb-admin --local version 2> /dev/null; then
5+
if mariadb-admin --local version >/dev/null 2>&1; then
66
echo "Logrotate is enabled"
77
else
88
cat <<-EOFPASS

0 commit comments

Comments
 (0)