diff --git a/matomo/Dockerfile b/matomo/Dockerfile index df26fbab..19637d81 100644 --- a/matomo/Dockerfile +++ b/matomo/Dockerfile @@ -36,7 +36,7 @@ ENV \ MATOMO_USER_NAME=admin \ MATOMO_USER_PASS='$2y$10$S38e7HPM9LI3aOIvcnRsfuMCm4ipNP572QsvbCK60upoHVJ61hMrS' -COPY --from=download --chown=nginx:nginx /opt/matomo /opt/matomo +COPY --from=download --chown=nginx:nginx /opt/matomo /var/www/matomo COPY rootfs / diff --git a/matomo/rootfs/etc/cont-init.d/00-matomo-deploy.sh b/matomo/rootfs/etc/cont-init.d/00-matomo-deploy.sh deleted file mode 100755 index 764b6ac0..00000000 --- a/matomo/rootfs/etc/cont-init.d/00-matomo-deploy.sh +++ /dev/null @@ -1,11 +0,0 @@ -#!/usr/bin/with-contenv bash -set -e - -# Runs before templates are rendered (before 01-confd-render-templates.sh). -# Copies matomo into the expected location it will run from (/var/www/matomo), -# if not already present. This is to allow users to use non-volume mounts like -# bind (https://docs.docker.com/storage/volumes/) for the entire matomo install. -if [[ ! -d /var/www/matomo/config ]]; then - cp -r /opt/matomo /var/www - chown nginx:nginx -R /var/www/matomo -fi