diff --git a/app/db/DBIP/dbip-country-lite-2020-01.mmdb b/app/db/DBIP/dbip-country-lite-2020-01.mmdb new file mode 100644 index 0000000000..133c896227 Binary files /dev/null and b/app/db/DBIP/dbip-country-lite-2020-01.mmdb differ diff --git a/app/db/GeoLite2/GeoLite2-Country.mmdb b/app/db/GeoLite2/GeoLite2-Country.mmdb deleted file mode 100644 index 60b7ffbade..0000000000 Binary files a/app/db/GeoLite2/GeoLite2-Country.mmdb and /dev/null differ diff --git a/build.sh b/build.sh index 998a650181..43cbaf42d7 100644 --- a/build.sh +++ b/build.sh @@ -8,9 +8,9 @@ echo "Updating git repository $1 / $2" git fetch origin git reset --hard origin/master -if test $(find "./app/db/GeoLite2/GeoLite2-Country.mmdb" -mmin +259200) +if test $(find "./app/db/DBIP/dbip-country-lite-2020-01.mmdb" -mmin +259200) then - printf "${RED}GEO country DB has not been updated for more than 6 months. Go to https://dev.maxmind.com/geoip/geoip2/geolite2/ for more info${NC}\n" + printf "${RED}GEO country DB has not been updated for more than 6 months. Go to https://db-ip.com/db/download/ip-to-country-lite to download a newer version${NC}\n" fi echo 'Starting build...' diff --git a/docs/services/locale.md b/docs/services/locale.md index cb3063c4ef..1ee3b66969 100644 --- a/docs/services/locale.md +++ b/docs/services/locale.md @@ -2,4 +2,4 @@ The locale service allows you to customize your app based on your users' locatio The user service supports multiple locales. This feature allows you to fetch countries and continents information in your app language. To switch locales, all you need to do is pass the 'X-Appwrite-Locale' header or set the 'setLocale' method using any of our available SDKs. [View here the list of available locales](https://github.com/appwrite/appwrite/blob/master/app/config/locales.php). -This product includes GeoLite2 data created by MaxMind, available from [https://www.maxmind.com](https://www.maxmind.com). \ No newline at end of file +IP Geolocation by DB-IP \ No newline at end of file