tor

The Tor anonymity network
git clone https://git.dasho.dev/tor.git
Log | Files | Refs | README | LICENSE

commit 5aa54639901248aec1800a204639afac249376c7
parent c8844bc929a86c95efab60243ca0d906f59f683d
Author: David Goulet <dgoulet@torproject.org>
Date:   Wed, 30 Aug 2023 08:40:50 -0400

Merge branch 'maint-0.4.8'

Diffstat:
Mscripts/maint/geoip/update_geoip.sh | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/scripts/maint/geoip/update_geoip.sh b/scripts/maint/geoip/update_geoip.sh @@ -8,8 +8,10 @@ TMP=$(mktemp -d) DB_PATH="/var/lib/location/database.db" # In case it exists as a dead symlink. -if [ -e "$DB_PATH" ]; then +if [ -h "$DB_PATH" ]; then unlink "$DB_PATH" +elif [ -e "$DB_PATH" ]; then + rm -f "$DB_PATH" fi curl -o "$DB_PATH.xz" "https://location.ipfire.org/databases/1/location.db.xz"