mirror of
https://git.freebsd.org/ports.git
synced 2025-06-16 10:10:31 -04:00
- Enable again IP geolocation by using the maxminddb. Rename script which downloads the data to reflect the change
9 lines
391 B
Bash
9 lines
391 B
Bash
#!/bin/sh
|
|
#
|
|
# $FreeBSD$
|
|
|
|
[ "$2" != "DEINSTALL" ] && exit 0
|
|
|
|
[ -f "%%DATADIR%%/httpdocs/geoip/GeoLite2-City.mmdb" ] && /bin/rm "%%DATADIR%%/httpdocs/geoip/GeoLite2-City.mmdb"
|
|
[ -f "%%DATADIR%%/httpdocs/geoip/GeoLite2-ASN.mmdb" ] && /bin/rm "%%DATADIR%%/httpdocs/geoip/GeoLite2-ASN.mmdb"
|
|
[ -d "%%DATADIR%%/httpdocs/geoip" ] && /usr/bin/find "%%DATADIR%%/httpdocs/geoip" -type d -empty -delete
|