Make sure some uci-defaults don’t run on upgrades #21

Closed
opened 2023-02-14 12:12:31 +01:00 by PeterSurda · 1 comment
Owner

According to documentation, uci-defaults run on upgrades: https://openwrt.org/docs/guide-developer/uci-defaults#ensuring_scripts_don_t_overwrite_custom_settingsimplementing_checks

For most of our scripts, we probably don't need them to run on upgrades, only on first install. For example adding a wan interface, and a firewall rule to allow ssh would now be repeated if I ran an upgrade. Therefore we should adjust them accordingly.

According to documentation, `uci-defaults` run on upgrades: https://openwrt.org/docs/guide-developer/uci-defaults#ensuring_scripts_don_t_overwrite_custom_settingsimplementing_checks For most of our scripts, we probably don't need them to run on upgrades, only on first install. For example adding a wan interface, and a firewall rule to allow ssh would now be repeated if I ran an upgrade. Therefore we should adjust them accordingly.
lee.miller was assigned by PeterSurda 2023-02-14 12:12:31 +01:00
Author
Owner

I think this has been resolved, we now have a /etc/config/defaults which tracks a per-script version.

I think this has been resolved, we now have a `/etc/config/defaults` which tracks a per-script version.
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: Sysdeploy/openwrt#21
No description provided.