File tree Expand file tree Collapse file tree 2 files changed +17
-4
lines changed
operator/src/main/resources/eu/glasskube/operator/apps/matomo/dependent Expand file tree Collapse file tree 2 files changed +17
-4
lines changed Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env sh
2
2
3
3
echo "
4
+
4
5
[General]
5
6
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
7
13
8
14
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
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ abort() {
7
7
8
8
./console matomo:install --install-file " $MATOMO_INSTALL_FILE " --force --do-not-drop-db || abort " could not install matomo"
9
9
10
- ./console plugin:activate TagManager || abort " could not install tag manager "
10
+ ./console core:update --yes || abort " upgrade failed "
11
11
12
12
if ./console site:list; then
13
13
echo " site:list exit code was 0. do not create a new site"
16
16
./console site:add --name " $MATOMO_FIRST_SITE_NAME " --urls " $MATOMO_FIRST_SITE_URL " || abort " could not add site"
17
17
fi
18
18
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"
20
24
./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"
You can’t perform that action at this time.
0 commit comments