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

Add rpm spec %config support #47

Open
wants to merge 4 commits into
base: files-whitelist
Choose a base branch
from

Conversation

bgaudaen
Copy link

Some feature addition...

@Mousius
Copy link
Contributor

Mousius commented Mar 22, 2018

Hi @bgaudaen, could you give an example of your use case?

Also, there's been a lot of changes in master recently, so it'd be great if you're still interested to resolve the merge conflicts 😸

@bgaudaen
Copy link
Author

bgaudaen commented Mar 23, 2018

Hi @DaMouse404, Just merged the changes.

My use case is the following:
I have an app which needs some configuration that is environment specific. Basically my RPM ships with a default configuration file "config.js" that will be edited after it is deployed. The default behaviour when you update the package is that this configuration file will be replaced by the one coming from the update. This is not what I want. What I want is to keep local changes on that file on the package update.
This is what the SPEC '%config' flag can do for me. Here is some more detailed documentation on the flag:
http://people.ds.cam.ac.uk/jw35/docs/rpm_config.html
http://rpm-guide.readthedocs.io/en/latest/appendix.html?highlight=noreplace#files

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

Successfully merging this pull request may close these issues.

2 participants