Make sure some uci-defaults
don’t run on upgrades
#21
Labels
No Label
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: Sysdeploy/openwrt#21
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
According to documentation,
uci-defaults
run on upgrades: https://openwrt.org/docs/guide-developer/uci-defaults#ensuring_scripts_don_t_overwrite_custom_settingsimplementing_checksFor 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.
I think this has been resolved, we now have a
/etc/config/defaults
which tracks a per-script version.