File tree Expand file tree Collapse file tree 4 files changed +7
-1
lines changed Expand file tree Collapse file tree 4 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,10 @@ chown -R abc:abc \
14
14
/config \
15
15
/downloads
16
16
17
+ chmod 644 \
18
+ /etc/logrotate.d/get_iplayer \
19
+ /etc/logrotate.d/get_iplayer_web
20
+
17
21
#refresh cache if necessary
18
22
if [[ $INCLUDERADIO == "true" ]]; then
19
23
if [ ! -f "/config/.get_iplayer/tv.cache" ] || [! -f "/config/.get_iplayer/radio.cache"]; then
Original file line number Diff line number Diff line change 1
1
/var/log/get_iplayer*.log {
2
+ su abc abc
2
3
notifempty
3
4
weekly
4
5
rotate 4
Original file line number Diff line number Diff line change 1
1
/config/log/get_iplayer_web*.log {
2
+ su abc abc
2
3
notifempty
3
4
weekly
4
5
rotate 4
Original file line number Diff line number Diff line change 1
- #! /bin/sh
1
+ #!/usr/ bin/with-contenv bash
2
2
3
3
# this cronjob persists removals (but not purges)
4
4
if [ ! -x /usr/sbin/logrotate ]; then
You can’t perform that action at this time.
0 commit comments