opkg-upgrade icon indicating copy to clipboard operation
opkg-upgrade copied to clipboard

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

Open Goro2030 opened this issue 6 years ago • 2 comments

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

Goro2030 avatar Dec 11 '18 13:12 Goro2030

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 avatar Dec 11 '18 18:12 tavinus

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 ;-)

lareq avatar Oct 22 '20 18:10 lareq