Skip to content

Commit 40dfdc1

Browse files
committed
Fix logrotate permissions
1 parent 5f03623 commit 40dfdc1

File tree

4 files changed

+7
-1
lines changed

4 files changed

+7
-1
lines changed

root/etc/cont-init.d/50-config

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ chown -R abc:abc \
1414
/config \
1515
/downloads
1616

17+
chmod 644 \
18+
/etc/logrotate.d/get_iplayer \
19+
/etc/logrotate.d/get_iplayer_web
20+
1721
#refresh cache if necessary
1822
if [[ $INCLUDERADIO == "true" ]]; then
1923
if [ ! -f "/config/.get_iplayer/tv.cache" ] || [! -f "/config/.get_iplayer/radio.cache"]; then

root/etc/logrotate.d/get_iplayer

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/var/log/get_iplayer*.log {
2+
su abc abc
23
notifempty
34
weekly
45
rotate 4

root/etc/logrotate.d/get_iplayer_web

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/config/log/get_iplayer_web*.log {
2+
su abc abc
23
notifempty
34
weekly
45
rotate 4

root/etc/periodic/daily/logrotate

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/sh
1+
#!/usr/bin/with-contenv bash
22

33
# this cronjob persists removals (but not purges)
44
if [ ! -x /usr/sbin/logrotate ]; then

0 commit comments

Comments
 (0)