Skip to content

Commit

Permalink
Enable premium plugins patching in matomo
Browse files Browse the repository at this point in the history
  • Loading branch information
pdavide committed Jun 30, 2022
1 parent bc49587 commit 4130bd8
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile.matomo
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ ENV DEBIAN_FRONTEND noninteractive

# install php required extensions
ARG BUILD_PACKAGES="autoconf build-essential wget"
ARG PACKAGES="unzip"
ARG PACKAGES="unzip patch"
ARG MATOMO_PHPREDIS_VERSION
RUN apt-get update && apt-get install -y ${BUILD_PACKAGES} ${PACKAGES} && \
wget https://pecl.php.net/get/redis-${MATOMO_PHPREDIS_VERSION}.tgz && \
Expand Down
11 changes: 11 additions & 0 deletions containers/matomo/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Changelog

## [Unreleased]

## [3.14.1-13] - 2022-06-30
### Added
- Changelog
- Installed patch command to support premium plugins patching

### Changed
- Updated WaiCustom plugin to 0.2.0
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ find -P /tmp/premium_plugins/* -prune -type d -printf "%f\n" | while IFS= read -
unzip -u "/tmp/premium_plugins/$directory/*.zip" -d /opt/matomo/plugins

# Apply patches
#find -P /tmp/premium_plugins/"$directory"/patches/*.diff -exec sh -c "patch -p1 -d /opt/matomo/plugins/$directory < {}" \;
find -P /tmp/premium_plugins/"$directory"/patches/*.patch -exec sh -c "patch -p1 -d /opt/matomo/plugins/$directory < {}" \;

if ! grep -q "$directory" /opt/matomo/config/config.ini.php; then
# Add plugin into "installed" list
Expand Down

0 comments on commit 4130bd8

Please sign in to comment.