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

Change logrotate to config in packaging #2857

Closed
glennwagner opened this issue Sep 21, 2018 · 1 comment
Closed

Change logrotate to config in packaging #2857

glennwagner opened this issue Sep 21, 2018 · 1 comment

Comments

@glennwagner
Copy link

glennwagner commented Sep 21, 2018

ISSUE TYPE
  • Enhancement Request
COMPONENT NAME
RPM, Packaging, install
CLOUDSTACK VERSION
4.11.1.0 
CONFIGURATION
OS / ENVIRONMENT

CentOS

SUMMARY

Consider marking logrotate script as config in the RPM packaging

https://github.com/apache/cloudstack/blob/master/packaging/centos7/cloud.spec#L519

STEPS TO REPRODUCE

EXPECTED RESULTS
%config(noreplace) %{_sysconfdir}/logrotate.d/%{name}-agent
ACTUAL RESULTS
%attr(0644,root,root) %{_sysconfdir}/logrotate.d/%{name}-agent
@rohityadavcloud rohityadavcloud added this to the 4.11.2.0 milestone Sep 21, 2018
rohityadavcloud added a commit to shapeblue/cloudstack that referenced this issue Sep 21, 2018
This makes the agent logrotate config to `noreplace` so on upgrade
any changes to the file are not lost.

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
@rohityadavcloud
Copy link
Member

@glennwagner I've fixed it here: #2860 /cc @PaulAngus @mlsorensen

rohityadavcloud added a commit that referenced this issue Sep 25, 2018
This makes the agent logrotate config to `noreplace` so on upgrade
any changes to the file are not lost.

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants