# Bug OP-13460 - Please refrain from overwriting logrotate settings with every single update

Project: OpenProject
Status: closed
URL: https://community.openproject.org/work_packages/OP-13460

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | High |
| Module |  |
| Target versions | 13.2.1 |
| Observed in versions | 13.0.0 |
| Sprint | 13.2.1 |
| Backlog bucket |  |
| Bug found in version (deprecated) | 13.0.x |
| Found in mobile app version |  |
| Follow-up feedback e-mail |  |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee | Cyril Rohr |
| Accountable |  |
| Product manager |  |
| Developers |  |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

| Attribute | Value |
| --- | --- |
| Relevance |  |

## Costs

| Attribute | Value |
| --- | --- |
| Votes |  |
| Work |  |
| Labor costs |  |

## Description

### I set this to high as this can lead to loss of needed logfiles

### 

### Steps to reproduce

Update to a new package version

### What is the buggy behavior?

*Please describe the bug in as much detail as possible. Example:*

  - With every update the logrotate settings in logrotate.d are overwritten
  - If you do not take great care with at every update all your logs could be gone forever if you have custom settings there (e.g. if you keep logs longer than the 14 days and you forget to fix the overwritten file after an update all your logs older than 14 days are gone the next day, respective after the next logrotate run, that's insane, no other application does that)

### What is the expected behavior?

*Describe how the application should behave like. Example:*

1.  If a file with the name openproject is already in /etc/logrotate.d it should be left alone

### Environment information

*Please check and fill out the following details to help us identify in what versions and distributions of OpenProject the error occurs*

**OpenProject installation type**

- [ ] Hosted cloud edition
- [x] Packaged installation
    - RHEL 9
- [ ] Docker All-in-one container
- [ ] Docker-compose installation
- [ ] Other (please specify)

**OpenProject version**

*If you're not running on the cloud edition, please specify the version of OpenProject you're running. Example: v12.1.5*

**Browser**

- [ ] Chrome
- [ ] Firefox
- [ ] Safari
- [ ] Mobile Safari
- [ ] Other (please specify)

**Language**

*Please specify the browser language and the language of the OpenProject user for which the bug occurred.*
