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

Optional removal of *-opkg from /etc/config after upgrade #6

Open
Goro2030 opened this issue Dec 11, 2018 · 2 comments
Open

Optional removal of *-opkg from /etc/config after upgrade #6

Goro2030 opened this issue Dec 11, 2018 · 2 comments
Assignees

Comments

@Goro2030
Copy link

Nice to have:

A) Ask the user if he/she would like to remove all default configuration files that opkg places in /etc/config ( /etc/config/*-opkg )
B) If so, delete them

Another approach would be to move them out to another directory

@tavinus
Copy link
Owner

tavinus commented Dec 11, 2018

Yep. That is on the wish-list.
For now, I need to understand how exactly opkg behaves related to that.

I THINK it will create /etc/config/*-opkg when the new config files are different.
Then it seems to cause errors if you already have a -opkg file and updates again
(update a package more than 2 times).

I need to be sure how that behaves first.

And then offer options like:

  • Move files
  • Delete files
  • Merge files
  • Diff files (requires diff-utils)
  • Git Diff files (requires git or git-http)

Ideas are welcome.
Cheers!

@tavinus tavinus self-assigned this Dec 11, 2018
@lareq
Copy link
Contributor

lareq commented Oct 22, 2020

but there is
--force-maintainer to overwrite all config settings with default from maintainer. I can code it as an option, but still thinking if not better to accept each change because of some individual changes, that may disconnect user from logging in.
Waiting for pro and cons ;-)

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

No branches or pull requests

3 participants