Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

logrotate: Fix duplicate log entries. #97

Merged
merged 1 commit into from May 25, 2023

Conversation

InterLinked1
Copy link
Contributor

The Asterisk logrotate script contains explicit
references to files with the .log extension,
which are also included when *log is expanded.
This causes issues with newer versions of logrotate. This fixes this by ensuring that a log file cannot be referenced multiple times after expansion occurs.

Resolves: #96
ASTERISK-30442
Reported by: EN Barnett
Tested by: EN Barnett

Imported from Gerrit: https://gerrit.asterisk.org/c/asterisk/+/19929

The Asterisk logrotate script contains explicit
references to files with the .log extension,
which are also included when *log is expanded.
This causes issues with newer versions of logrotate.
This fixes this by ensuring that a log file cannot
be referenced multiple times after expansion occurs.

Resolves: asterisk#96
ASTERISK-30442
Reported by: EN Barnett
Tested by: EN Barnett
@InterLinked1
Copy link
Contributor Author

cherry-pick-to: 20

@github-actions
Copy link

REMINDER: If this PR applies to other branches, please add a
comment with the appropriate "cherry-pick-to" headers as per
the Create a Pull Request process.
If you don't want it cherry-picked, please add a comment stating
"No cherry-picks required" so we don't keep asking.

If, after adding "cherry-pick-to" comments, you change your mind,
please edit the comment to DELETE the header lines and add
"No cherry-picks required".

@asterisk-org-access-app asterisk-org-access-app bot requested a review from a team May 18, 2023 17:06
@gtjoseph gtjoseph added the cherry-pick-test Trigger dry run of cherry-picks label May 18, 2023
@github-actions github-actions bot added cherry-pick-testing-in-progress Cherry-Pick tests in progress cherry-pick-checks-passed Cherry-Pick checks passed cherry-pick-gates-passed Cherry-Pick gates passed and removed cherry-pick-test Trigger dry run of cherry-picks cherry-pick-testing-in-progress Cherry-Pick tests in progress labels May 18, 2023
@gtjoseph gtjoseph merged commit 2159ec8 into asterisk:master May 25, 2023
27 of 30 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[bug]: make install-logrotate causes logrotate to fail on service restart
3 participants