Fix one_key_update: update IPK/APK first, backup Geo* db files during upgrade#5127
Open
oozj wants to merge 15 commits into
Open
Fix one_key_update: update IPK/APK first, backup Geo* db files during upgrade#5127oozj wants to merge 15 commits into
oozj wants to merge 15 commits into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adjust one_key_update flow: do not update core before plugin upgrade; update core after IPK/APK install succeeds to avoid core/db files being overwritten/removed by package upgrade.
While generating /tmp/openclash_update.sh, backup and restore (overwrite) these files around opkg/apk install:
/etc/openclash/GeoSite.dat
/etc/openclash/GeoIP.dat
/etc/openclash/Country.mmdb
/etc/openclash/Model.bin
Fixes user-reported update loop where GeoSite/core got removed after IPK upgrade (see #5098).