mirror of https://github.com/Aidaho12/haproxy-wi
10 lines
364 B
Django/Jinja
10 lines
364 B
Django/Jinja
#!/bin/bash
|
|
|
|
cd {{nginx_dir}}/scripts
|
|
git clone https://github.com/sherpya/geolite2legacy.git || true
|
|
cd geolite2legacy
|
|
wget "https://download.maxmind.com/app/geoip_download?edition_id=GeoLite2-Country-CSV&license_key={{maxmind_key}}&suffix=zip" -qO geoip2Country.zip
|
|
|
|
python3 geolite2legacy.py -i geoip2Country.zip -o GeoIP.dat
|
|
mv GeoIP.dat {{nginx_dir}}/geoip/
|