Skip to content

Commit a89bf8a

Browse files
committed
Fixes the .backup files due to wrong logrotate permissions
1 parent 1f71eb9 commit a89bf8a

File tree

4 files changed

+14
-7
lines changed

4 files changed

+14
-7
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
NAME=oc-sd-optimizations
2-
VERSION=0.02
2+
VERSION=0.03
33
MAINTAINER='Artur Balanuta'
44
DEPS := rsyslog
55
WORK_DIR=src
2.52 KB
Binary file not shown.

src/etc/logrotate.d/rsyslog

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,15 @@
88
/var/log/cron.log
99
/var/log/debug
1010
{
11+
su root adm
12+
create 0666 root adm
1113
size 100k
1214
rotate 2
1315
missingok
1416
notifempty
1517
copytruncate
1618
compress
17-
delaycompress
19+
delaycompress
1820
sharedscripts
1921
postrotate
2022
invoke-rc.d rsyslog rotate > /dev/null
@@ -27,13 +29,16 @@
2729
/var/log/messages
2830
/var/log/user.log
2931
{
30-
size 5M
32+
su root adm
33+
create 0666 root adm
34+
size 10M
3135
rotate 0
36+
compress
37+
delaycompress
38+
copytruncate
3239
missingok
3340
notifempty
34-
copytruncate
3541
compress
36-
delaycompress
3742
sharedscripts
3843
postrotate
3944
invoke-rc.d rsyslog rotate > /dev/null

src/etc/tmpfiles.d/oc-logs.conf

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1+
f /var/log/daemon.log 666 root adm -
2+
f /var/log/syslog 666 root adm -
13
f /var/log/alternatives.log 644 root root -
24
d /var/log/apt 755 root adm -
35
f /var/log/aptitude 644 root root -
46
f /var/log/bootstrap.log 644 root root -
57
f /var/log/dpkg.log 644 root root -
68
f /var/log/faillog 644 root root -
79
f /var/log/lastlog 664 root utmp -
8-
d /var/log/lora-gateway-bridge 777 gatewaybridge gatewaybridge -
9-
d /var/log/ntpstats 775 ntp ntp -
10+
d /var/log/lora-gateway-bridge 755 gatewaybridge gatewaybridge -
11+
d /var/log/ntpstats 755 ntp ntp -
1012
d /var/log/samba 750 root adm -

0 commit comments

Comments
 (0)