Open RisingOpsNinja opened 1 week ago
Thank you for bringing this issue to our attention. We appreciate your involvement! If you're interested in contributing a solution, we welcome you to create a pull request. The Bitnami team is excited to review your submission and offer feedback. You can find the contributing guidelines here.
Your contribution will greatly benefit the community. Feel free to reach out if you have any questions or need assistance.
Name and Version
bitnami/matomo:5.1.1
What is the problem this feature will solve?
An update replaces all existing Matomo files with the latest version, but it does not delete obsolete files. E.g. when updating from 4.16.0 to 5.1.1, 168 old files remain.
Because since image version 4.15.0-debian-11-r20, all Matomo files have been made persistent:
https://github.com/bitnami/containers/pull/42956/commits/33b63ac86846d63964fce5555fedd0d2d9b0e76c
What is the feature you are proposing to solve the problem?
The official Matomo documentation suggest deleting obsolete files after an update with this command (Matomo 4.13.2+ only):
Excluded files:
Source: https://github.com/matomo-org/matomo/blob/f9d5c2856f5e4bf9b09414a0b3da56b5392352e7/plugins/Diagnostics/Commands/UnexpectedFiles.php#L88
Caveat:
This command also deletes
/bitnami/matomo/.spdx-matomo.spdx
/bitnami/matomo/.user_scripts_initialized
What alternatives have you considered?
No response