Fix location and add GeoIP database

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2019-06-09 16:12:47 +02:00
parent 8f2a3b684a
commit 106d80d889
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E
2 changed files with 7 additions and 1 deletions

View file

@ -13,4 +13,10 @@ echo "No Matomo installation found or not up-to-date" >&2
echo "Installing bundled Matomo version" >&2 echo "Installing bundled Matomo version" >&2
tar -xvz -C /var/www --strip-components=1 -f /opt/matomo.tgz tar -xvz -C /var/www --strip-components=1 -f /opt/matomo.tgz
if [[ -f misc/GeoLite2-City.mmdb ]]; then
curl -sSfL "https://geolite.maxmind.com/download/geoip/database/GeoLite2-City.tar.gz" |
tar -xz -C misc --strip-components=1 --wildcards '*/GeoLite2-City.mmdb'
fi
chown -R nobody:nogroup /var/www chown -R nobody:nogroup /var/www

View file

@ -1,2 +1,2 @@
always_populate_raw_post_data=-1 always_populate_raw_post_data=-1
geoip.custom_directory=/var/www/html/misc geoip.custom_directory=/var/www/misc