Skip to content

Commit 553c4e9

Browse files
committed
feat(Matomo): prepare deployment for Matomo 5 release
Signed-off-by: Philip Miglinci <pmig@glasskube.eu>
1 parent 04ee1a5 commit 553c4e9

File tree

2 files changed

+17
-4
lines changed
  • operator/src/main/resources/eu/glasskube/operator/apps/matomo/dependent

2 files changed

+17
-4
lines changed
Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
11
#!/usr/bin/env sh
22

33
echo "
4+
45
[General]
56
always_load_commands_from_plugin=ExtraTools
6-
" >/usr/src/matomo/config/config.ini.php
7+
force_ssl = 1
8+
" >> /usr/src/matomo/config/config.ini.php
9+
10+
rsync --checksum --recursive --links --times --omit-dir-times --no-owner --no-group --no-perms --delete \
11+
/usr/src/matomo/ /var/www/html/ \
12+
--exclude=tmp --exclude=misc
713

814
rsync --checksum --recursive --links --times --omit-dir-times --no-owner --no-group --no-perms \
9-
/usr/src/matomo/ /var/www/html/
15+
/usr/src/matomo/misc/ /var/www/html/misc

operator/src/main/resources/eu/glasskube/operator/apps/matomo/dependent/install.sh

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ abort() {
77

88
./console matomo:install --install-file "$MATOMO_INSTALL_FILE" --force --do-not-drop-db || abort "could not install matomo"
99

10-
./console plugin:activate TagManager || abort "could not install tag manager"
10+
./console core:update --yes || abort "upgrade failed"
1111

1212
if ./console site:list; then
1313
echo "site:list exit code was 0. do not create a new site"
@@ -16,5 +16,12 @@ else
1616
./console site:add --name "$MATOMO_FIRST_SITE_NAME" --urls "$MATOMO_FIRST_SITE_URL" || abort "could not add site"
1717
fi
1818

19-
./console core:convert-to-utf8mb4 --yes || abort "could not convert database"
19+
# Note: if the command returns Command "core:convert-to-utf8mb4" is not defined.
20+
# then your database should already be using utf8mb4 and you don’t need to run the command.
21+
# https://matomo.org/faq/how-to-update/how-to-convert-the-database-to-utf8mb4-charset/
22+
23+
./console core:convert-to-utf8mb4 --yes || echo "could not convert database or database already converted"
2024
./console core:create-security-files || abort "could not create security files"
25+
26+
./console plugin:activate TagManager || abort "could not install tag manager"
27+
./console plugin:deactivate ProfessionalServices Marketplace Feedback || echo "could not uninstall professional services, marketplace and feedback"

0 commit comments

Comments
 (0)