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

Default Behavior for Handling Modified Configuration Files During Package Updates #8513

Open
BoBBer446 opened this issue Mar 26, 2024 · 1 comment
Labels
question Further information is requested

Comments

@BoBBer446
Copy link

Hello,

I have a question regarding the default behavior of our package management system when it comes to updating packages that include configuration files which have been manually edited by the user. For example, if I have made custom changes to the nginx.conf file for nginx, what happens to this file when the nginx package is updated through our package manager?

Could you please clarify:

  • Does the package update process overwrite custom modifications in configuration files like nginx.conf?
  • Are there any mechanisms in place (such as prompting the user or creating backup versions of the original configuration files) that help preserve these modifications?
  • If the default behavior is to overwrite these files, is there a way to influence or change this behavior to ensure that custom modifications are preserved during an update?

I'm looking for insights on best practices for managing updates to packages with customized configuration files to avoid losing important customizations.

Thank you for your assistance.

@BoBBer446 BoBBer446 added the question Further information is requested label Mar 26, 2024
@rjmateus
Copy link
Member

rjmateus commented Apr 1, 2024

That will depend on how the package was build and the configuration file defined. One possible behavior is add the new file from the package and nginx.conf.new.
How it behaves is defined at package build time. You have a look at: https://www.cl.cam.ac.uk/~jw35/docs/rpm_config.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants