Skip to content

Copy downloaded plugins from Marketplace to MATOMO_PLUGIN_DIRS folder too #14534

@nabiltntn

Description

@nabiltntn

Hi,
The new feature allowing different folders for plugins using the MATOMO_PLUGIN_DIRS env is great.

But is it possible to copy downloaded plugins from Marketplace UI also into declared directories in addition to Matomo /plugins folder.

Download logic copies extracted .zip file to '/plugins' folder and it's not using new getPluginsDirectories function

public function installOrUpdatePluginFromMarketplace($pluginName)

$this->copyPluginToDestination($tmpPluginFolder);

private function copyPluginToDestination($tmpPluginFolder)

$pluginsDir = Manager::getPluginsDirectory();

The goal is to easily "track" all the added/deleted plugins so creating new Matomo deployment becomes much easier.

This is useful with Kubernetes because i can define MATOMO_PLUGIN_DIRS folder to point to a Persistent Volume path shared between many PODs

Metadata

Metadata

Assignees

No one assigned

    Labels

    EnhancementFor new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions