-
Notifications
You must be signed in to change notification settings - Fork 1
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
Configuration files missing %noreplace? #9
Comments
That's correct for the For the |
Hello Yannick! Thank you for your reply! Yes, sadly, it is needed, because otherwise the customized configuration files will simply be saved as ".rpmsave". I believe the "special treatement" is simply that they save the old (customized) versions, i.e. do not completely remove them from disk. With %config(noreplace) the stock (package) versions will be saved as ".rpmnew" and the customized versions will be left as-is, which would be desired for most configuration files. |
Please try with 1.0.11-beta. Now I got this:
|
Hello Yannick, and thank you for your reply! Looks good, except that /usr/lib/systemd/system/rock.service should actually not be a configuration file at all, as any overrides should be performed in /etc/systemd/system (as per https://www.freedesktop.org/software/systemd/man/systemd.unit.html#id-1.14.3) -- and that the directory /etc/rock should not itself be flagged as %config, only the specific configuration files (as per http://ftp.rpm.org/max-rpm/s1-rpm-inside-files-list-directives.html#S3-RPM-INSIDE-FLIST-CONFIG-DIRECTIVE and https://docs.fedoraproject.org/ro/Fedora_Draft_Documentation/0.1/html/RPM_Guide/ch09s05s03.html). |
ok for the That's what I get in the RPM specs:
and after install:
Are you sure there is a problem with having the |
Hello Yannick! I'm unsure whether tagging /etc/rock as %config or %config(noreplace) would have any side-effects (e.g. acting as a "default" for files placed there, similar to %docdir). Is it correct that the Maven RPM plugin only "operates" on directories, and that files cannot be enumerated one by one? |
Same changes applied to opal, mica2 and agate, thanks (again)! |
Hello again Yannick! When will these new RPMs (opal-server, mica2 and agate) with the %config(noreplace) be published at https://obiba.jfrog.io/ui/native/rpm-local? It appears that there are only "older" versions there. Thanks in advance! |
Hi, I have just released rock 1.0.11. |
Hello, Yannick, and thank you! Will this be applied also to opal-server, mica2 and agate in the near future? (Many thanks in advance!) |
Yes, this week or next week. |
Thank you very much, Yannick! It is much appreciated! |
Hello Yannick!
It appears that the Rock configuration files are not marked as %noreplace, resulting in configuration overwrite on updates:
Would it be possible to have the configuration files in /etc/rock marked as %config + %noreplace so that any custom changes persist on updates?
Also, /etc/default/rock is not tagged as a configuration file at all, so any Java argument changes (for example) are lost on upgrades. Perhaps that one should be marked as %config + %noreplace too?
Many thanks in advance!
The text was updated successfully, but these errors were encountered: