scripts: Quiet the IPFire location GeoIP command
[tor.git] / scripts / maint / geoip / update_geoip.sh
blob743683ab62547e288e7be30e158921c0de12ae6a
1 #!/bin/sh
3 set -e
5 DIR=$(cd "$(dirname "$0")" && pwd)
6 TMP=$(mktemp -d)
8 location --quiet update
9 location dump "$TMP/geoip-dump.txt"
11 OLDDIR=$(pwd)
12 cd "$DIR/geoip-db-tool/"
13 cargo build --release
14 cd "$OLDDIR"
16 "$DIR/geoip-db-tool/target/release/geoip-db-tool" -i "$TMP/geoip-dump.txt"