Skip to content

Commit

Permalink
don't autoreindex when there was no previous config
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisguida committed Jun 3, 2022
1 parent df03462 commit 6e02f54
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions assets/compat/config-set.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ then
fi

# if the old prune config was disabled, no action required
if [ "$OLD_PRUNING_TL" = "disabled" ]
# also do nothing if there was no previous config. this allows bootstrapping a pruned node from a non-embassy-os source such as prunednode.today
if [ "$OLD_PRUNING_TL" = "disabled" ] || [ -z "$OLD_PRUNING_TL" ]
then
>&2 echo No reindex required
# if they are the same, and the new prune cache size is reduced, no action required
Expand All @@ -33,4 +34,4 @@ else
>&2 echo Reindex required
touch $DATA_DIR/requires.reindex
fi
echo "$COMPAT_RES"
echo "$COMPAT_RES"

0 comments on commit 6e02f54

Please sign in to comment.