ports/net/ntopng/files/pkg-deinstall.in
Guido Falsi 9d7e78cad2 - Update ntopng to latest upstream snapshot
- Enable again IP geolocation by using the maxminddb. Rename script
  which downloads the data to reflect the change
2019-01-15 18:16:34 +00:00

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