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

prevent config.json from being overwritten by apt upgrade #4394

Closed
Metzlmane opened this issue Jun 22, 2017 · 6 comments
Closed

prevent config.json from being overwritten by apt upgrade #4394

Metzlmane opened this issue Jun 22, 2017 · 6 comments
Labels
A-Packaging Packaging, signing, releasing P3 T-Enhancement

Comments

@Metzlmane
Copy link

I installed the riot-web package via the debian package resource and set all the url's in the config.json under /opt/Riot/resources/webapp/
If i update the package, I have to redo this. The config file gets overwritten. Is it possible to move this one to /etc or something else?

Ubuntu 16.04

@t3chguy
Copy link
Member

t3chguy commented Jun 22, 2017

This is more of an internal config file, if you want to change options you should build it yourself, as per instructions in Readme. It is used for per-build data really
Though a saner approach would be an override file, so you have a config file that gets merged with the one that ships and that combination is the actual config.

@t3chguy
Copy link
Member

t3chguy commented Jun 22, 2017

for now you could make it immutable https://www.cyberciti.biz/tips/linux-password-trick.html

@t3chguy
Copy link
Member

t3chguy commented Aug 30, 2017

This is intentional as it is a build configuration file rather than a user configuration

@t3chguy
Copy link
Member

t3chguy commented Nov 9, 2017

Last I pestered someone, namely Dave, he said this was completely intentional and that adding an override file i.e /etc/riot/config.json was not wanted at the time

@t3chguy
Copy link
Member

t3chguy commented Mar 22, 2019

Possible via #8983 by specifying the path of your config.json from which override values will be sourced

@t3chguy t3chguy closed this as completed Mar 22, 2019
@jryans
Copy link
Collaborator

jryans commented Mar 22, 2019

See the README for more detail on how to use a local config override.

@jryans jryans added the A-Packaging Packaging, signing, releasing label Jul 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Packaging Packaging, signing, releasing P3 T-Enhancement
Projects
None yet
Development

No branches or pull requests

4 participants