diff --git a/.travis-ci/build.sh b/.travis-ci/build.sh index af8156f90..57aa5ca11 100644 --- a/.travis-ci/build.sh +++ b/.travis-ci/build.sh @@ -15,7 +15,7 @@ then exit 1 fi -if test $(find "./app/db/DBIP/dbip-country-lite-2021-10.mmdb" -mmin +259200) +if test $(find "./app/db/DBIP/dbip-country-lite-2021-12.mmdb" -mmin +259200) then 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 diff --git a/app/db/DBIP/dbip-country-lite-2021-10.mmdb b/app/db/DBIP/dbip-country-lite-2021-10.mmdb deleted file mode 100644 index 6ef9a3c45..000000000 Binary files a/app/db/DBIP/dbip-country-lite-2021-10.mmdb and /dev/null differ diff --git a/app/db/DBIP/dbip-country-lite-2021-12.mmdb b/app/db/DBIP/dbip-country-lite-2021-12.mmdb new file mode 100644 index 000000000..5dcb5ed77 Binary files /dev/null and b/app/db/DBIP/dbip-country-lite-2021-12.mmdb differ diff --git a/app/init.php b/app/init.php index 03788776f..3f74f34c0 100644 --- a/app/init.php +++ b/app/init.php @@ -467,7 +467,7 @@ $register->set('smtp', function () { return $mail; }); $register->set('geodb', function () { - return new Reader(__DIR__.'/db/DBIP/dbip-country-lite-2021-10.mmdb'); + return new Reader(__DIR__.'/db/DBIP/dbip-country-lite-2021-12.mmdb'); }); $register->set('db', function () { // This is usually for our workers or CLI commands scope $dbHost = App::getEnv('_APP_DB_HOST', '');