From 98450d7c25a638327a972b8fb5fd5fadf3f0543d Mon Sep 17 00:00:00 2001 From: Anefu Date: Wed, 3 Jan 2024 12:19:32 +0100 Subject: [PATCH] chore(Matomo): put matomo into maintenance mode --- .../eu/glasskube/operator/apps/matomo/dependent/install.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/operator/src/main/resources/eu/glasskube/operator/apps/matomo/dependent/install.sh b/operator/src/main/resources/eu/glasskube/operator/apps/matomo/dependent/install.sh index 62e182cb..34c4fb10 100644 --- a/operator/src/main/resources/eu/glasskube/operator/apps/matomo/dependent/install.sh +++ b/operator/src/main/resources/eu/glasskube/operator/apps/matomo/dependent/install.sh @@ -9,6 +9,9 @@ abort() { ./console core:update --yes || abort "upgrade failed" +# Remove database from maintenance mode after upgrade +sed -i '/^maintenance_mode = 1$/d; /^\[Tracker\]$/d; /^record_statistics = 0$/d' init.sh + if ./console site:list; then echo "site:list exit code was 0. do not create a new site" else