Thanks to visit codestin.com
Credit goes to github.com

Skip to content

logrotate: Fix duplicate log entries.#97

Merged
gtjoseph merged 1 commit into
asterisk:masterfrom
InterLinked1:master-issue-96
May 25, 2023
Merged

logrotate: Fix duplicate log entries.#97
gtjoseph merged 1 commit into
asterisk:masterfrom
InterLinked1:master-issue-96

Conversation

@InterLinked1

Copy link
Copy Markdown
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
Copy Markdown
Contributor Author

cherry-pick-to: 20

@github-actions

Copy link
Copy Markdown

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
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