mirror of
https://github.com/getumbrel/umbrel-apps.git
synced 2026-12-05 10:45:12 +03:00
Update pre-start script to trigger re-index for 0.19.1
This commit is contained in:
1 parent
6666c74862
commit
5d4e6b7b29
1 file changed
+4
-4
@@ -25,16 +25,16 @@ if [[ -f "${APP_DATA_DIR}/index.redb" ]]; then
|
||||
set_correct_permissions "${APP_DATA_DIR}"
|
||||
fi
|
||||
|
||||
# re-index the ordinals data for runes
|
||||
# for installs post 0.18.1 this file will be harmlessly created
|
||||
if [[ ! -f "${APP_DATA_DIR}/AT_LEAST_0-18-1" ]]; then
|
||||
# re-index ord on major version upgrades (so far in ord's history, this has been required on every major version update)
|
||||
# for fresh installs this file will be harmlessly created
|
||||
if [[ ! -f "${APP_DATA_DIR}/AT_LEAST_0-19-1" ]]; then
|
||||
# delete index db for all bitcoin networks
|
||||
for file in "${ORDINALS_DATA_DIR}/index.redb" "${ORDINALS_DATA_DIR}/testnet3/index.redb" "${ORDINALS_DATA_DIR}/regtest/index.redb" "${ORDINALS_DATA_DIR}/signet/index.redb"; do
|
||||
if [[ -f "${file}" ]]; then
|
||||
rm -f "${file}"
|
||||
fi
|
||||
done
|
||||
touch "${APP_DATA_DIR}/AT_LEAST_0-18-1"
|
||||
touch "${APP_DATA_DIR}/AT_LEAST_0-19-1"
|
||||
fi
|
||||
|
||||
# migrate all wallet database files to ord/wallets, ord/testnet3/wallets, ord/regtest/wallets, and ord/signet/wallets for pre-0.18.2 versions: https://github.com/ordinals/ord/releases/tag/0.18.2
|
||||
|
||||
Reference in new issue
Block a user