Skip to content

Commit

Permalink
update geoip2 update
Browse files Browse the repository at this point in the history
  • Loading branch information
noogen committed Sep 28, 2022
1 parent 22ad66e commit e4b8415
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
6 changes: 4 additions & 2 deletions files/etc/cron.daily/geoip2-update
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/bin/bash
# download geolite2 file
cd /etc/nginx
./geoip2-download.sh
bash /etc/nginx/geoip2-download.sh

# reload nginx
nginx -s reload
1 change: 1 addition & 0 deletions files/etc/nginx/geoip2-download.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/bin/bash
#
cd /etc/nginx
curl -sLo GeoLite2-ASN.mmdb https://git.io/GeoLite2-ASN.mmdb
curl -sLo GeoLite2-City.mmdb https://git.io/GeoLite2-City.mmdb
curl -sLo GeoLite2-Country.mmdb https://git.io/GeoLite2-Country.mmdb

0 comments on commit e4b8415

Please sign in to comment.