Skip to content

Commit a54f820

Browse files
authored
Merge pull request #1279 from flyingcircusio/PL-133012-matomo-remove-unexpected-files
matomo: remove unexpected files
2 parents 84e13e3 + 861912f commit a54f820

File tree

2 files changed

+28
-2
lines changed

2 files changed

+28
-2
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<!--
2+
3+
A new changelog entry.
4+
5+
Delete placeholder items that do not apply. Empty sections will be removed
6+
automatically during release.
7+
8+
Leave the XX.XX as is: this is a placeholder and will be automatically filled
9+
correctly during the release and helps when backporting over multiple platform
10+
branches.
11+
12+
-->
13+
14+
15+
### NixOS XX.XX platform
16+
17+
- matomo: improve cleanup of unwanted files after upgrading from matomo4 to matomo5 (PL-133012)

nixos/services/matomo/matomo-delete-unwanted-files.sh

+11-2
Original file line numberDiff line numberDiff line change
@@ -191,9 +191,18 @@ files=(\
191191
"/var/lib/matomo/share/node_modules/angular-sanitize/README.md"\
192192
"/var/lib/matomo/share/node_modules/angular-sanitize/angular-sanitize.min.js"\
193193
"/var/lib/matomo/share/node_modules/angular-sanitize/index.js"\
194+
"/var/lib/matomo/share/libs/Zend/Session/SaveHandler/DbTable.php"\
195+
"/var/lib/matomo/share/libs/Zend/Session/SaveHandler/Exception.php"\
196+
"/var/lib/matomo/share/libs/Zend/Session/SaveHandler/Interface.php"\
197+
"/var/lib/matomo/share/plugins/CoreHome/javascripts/numberFormatter.js"\
198+
"/var/lib/matomo/share/plugins/CoreHome/vue/src/getFormattedEvolution.ts"\
199+
"/var/lib/matomo/share/plugins/Installation/FormDatabaseSetup.php.orig"\
200+
"/var/lib/matomo/share/plugins/TagManager/stylesheets/gettingStarted.less"\
201+
"/var/lib/matomo/share/plugins/TagManager/templates/gettingStarted.twig"\
202+
"/var/lib/matomo/share/plugins/TagManager/templates/trackingHelp.twig"\
194203
)
195204

196-
for file in "''${files[@]}";do
205+
for file in "${files[@]}";do
197206
if [ -f "$file" ]; then
198207
rm -v "$file"
199208
fi
@@ -214,7 +223,7 @@ directories=(\
214223
"/var/lib/matomo/share/vendor/symfony/monolog-bridge/Symfony"\
215224
)
216225

217-
for dir in "''${directories[@]}";do
226+
for dir in "${directories[@]}";do
218227
if [ -d "$dir" ]; then
219228
rm -Rvf "$dir"
220229
fi

0 commit comments

Comments
 (0)