mirror of
https://github.com/luzifer-docker/matomo.git
synced 2024-10-18 08:04:22 +00:00
Fix location and add GeoIP database
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
8f2a3b684a
commit
106d80d889
2 changed files with 7 additions and 1 deletions
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue