mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 05:03:43 +01:00
Merge branch 'maint-0.4.8'
This commit is contained in:
commit
5aa5463990
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user