#!/usr/bin/env bash

set -e
set -x

cd /opt/ipgeo
rm /opt/ipgeo/*.mmdb
wget https://github.com/analogic/ipgeo/raw/master/ipgeo-country.mmdb
ln -s ipgeo-country.mmdb GeoLite2-Country.mmdb

chmod 644 /etc/sudo.conf

exec /installation/patches/patch.sh