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

New update-packages script #667

Merged
merged 5 commits into from
Jul 25, 2024
Merged

New update-packages script #667

merged 5 commits into from
Jul 25, 2024

Conversation

gsanchietti
Copy link
Member

@gsanchietti gsanchietti commented Jul 22, 2024

Add a new update-packages script, features:

  • all operations are written to syslog and stderr: this change is very useful for troubleshooting and tracking the automatic updates
  • accept the 'force-stable' flag to gather updates from stable channel regardless of subscription status: this can be used to quickly distribute fixes

#668

@gsanchietti gsanchietti self-assigned this Jul 22, 2024
@gsanchietti gsanchietti force-pushed the force_update branch 2 times, most recently from 37f8cec to 39de0a9 Compare July 23, 2024 07:28
@gsanchietti gsanchietti changed the title ns-plug: add script to update the packages New update-packages script Jul 23, 2024
@gsanchietti gsanchietti marked this pull request as ready for review July 23, 2024 09:13
Features:

- all changes are written to syslog
- accept the 'force' flag to gather updates
  from stable channel regardless of subscription status
During package update, files are not copied inside /etc/uci-default.
A typical error is:

  //usr/lib/opkg/info/ns-plug.postinst: /usr/lib/opkg/info/ns-plug.postinst-pkg: line 5: /etc/uci-defaults/40_ns-plug_automatic_updates: not found

To avoid such error:

- duplicate the script and put it under /usr/libexec
- execute the script inside postinst
@gsanchietti gsanchietti merged commit 9ca27ef into main Jul 25, 2024
1 check passed
@gsanchietti gsanchietti deleted the force_update branch July 25, 2024 06:23
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