-
Notifications
You must be signed in to change notification settings - Fork 297
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BUG: fix logrotate ownership options
The packaged configuration for logrotate falsely contained options applying to other programs' log files. This caused wrong ownerships of log files. This issues is corrected, but the ownership of affected log files may need to be changed manually. To find affected files, you may use: ```bash sudo find /var/log/ -user intelmq ! -path \*intelmq\* ``` fixes #2110
- Loading branch information
Sebastian Wagner
authored and
Wagner
committed
Sep 16, 2021
1 parent
531107f
commit 5b3c68b
Showing
4 changed files
with
23 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,18 @@ | ||
Description: Fix paths in logrotate configuration to obey FHS | ||
Author: Gernot Schulz <[email protected]>, Sebastian Wagner <[email protected]> | ||
Last-Update: 2021-03-03 | ||
Last-Update: 2021-09-14 | ||
--- | ||
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ | ||
--- a/contrib/logrotate/intelmq 2021-03-03 11:08:37.811638328 +0100 | ||
+++ b/contrib/logrotate/intelmq 2021-03-03 11:09:27.415930805 +0100 | ||
@@ -2,7 +2,7 @@ | ||
delaycompress | ||
create 644 intelmq intelmq | ||
|
||
--- a/contrib/logrotate/intelmq | ||
+++ b/contrib/logrotate/intelmq | ||
@@ -1,4 +1,4 @@ | ||
-/opt/intelmq/var/log/*.log { | ||
+/var/log/intelmq/*.log { | ||
su intelmq intelmq | ||
daily | ||
maxsize 10M | ||
@@ -10,11 +10,11 @@ | ||
notifempty | ||
@@ -9,11 +9,11 @@ | ||
create 644 intelmq intelmq | ||
sharedscripts | ||
postrotate | ||
- sudo -u intelmq /usr/local/bin/intelmqctl --quiet reload | ||
|
@@ -28,8 +25,8 @@ This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ | |
su intelmq intelmq | ||
daily | ||
maxsize 10M | ||
@@ -22,6 +22,6 @@ | ||
notifempty | ||
@@ -24,6 +24,6 @@ | ||
create 644 intelmq intelmq | ||
sharedscripts | ||
postrotate | ||
- sudo -u intelmq /usr/local/bin/intelmqctl --quiet reload file-output | ||
|