From f3f08894f885676853ad9822070c07cbc59e730d Mon Sep 17 00:00:00 2001 From: Pierre Ozoux <pierre@ozoux.net> Date: Thu, 3 Feb 2022 11:09:00 +0100 Subject: [PATCH] Updates Nc to latest 21. --- libre | 10 +++++----- migrations/2022-02-03-update-nc-21.sh | 13 +++++++++++++ 2 files changed, 18 insertions(+), 5 deletions(-) create mode 100644 migrations/2022-02-03-update-nc-21.sh diff --git a/libre b/libre index f94b1ec..7237f3f 100755 --- a/libre +++ b/libre @@ -44,12 +44,12 @@ if [ "${APP}" = "nextcloud" ]; then export NC_WEB_IMAGE_TAG=22.1.1-web-2021-09-08 elif [ "${VERSION}" = "beta" ]; then export NC_VERSION=21.0.7.0 - export NC_IMAGE_TAG=21.0.7-2022-01-24 - export NC_WEB_IMAGE_TAG=21.0.7-web-2022-01-24 + export NC_IMAGE_TAG=21.0.7-2022-02-02 + export NC_WEB_IMAGE_TAG=21.0.7-web-2022-02-02 else - export NC_VERSION=20.0.14.2 - export NC_IMAGE_TAG=20.0.14-2022-01-10 - export NC_WEB_IMAGE_TAG=20.0.14-web-2022-01-10 + export NC_VERSION=21.0.7.0 + export NC_IMAGE_TAG=21.0.7-2022-02-02 + export NC_WEB_IMAGE_TAG=21.0.7-web-2022-02-02 fi fi diff --git a/migrations/2022-02-03-update-nc-21.sh b/migrations/2022-02-03-update-nc-21.sh new file mode 100644 index 0000000..c05724b --- /dev/null +++ b/migrations/2022-02-03-update-nc-21.sh @@ -0,0 +1,13 @@ +#!/bin/bash -eu + +cd /root/domains + +for nuage in `kubectl get ing -l app.kubernetes.io/name=nextcloud -A --no-headers -o custom-columns=":metadata.name" | sed s/-web//g | grep -v "beta\|test-meteo"`; do + export NS=`echo $nuage | cut -d"-" -f2-` + export SUBDOMAIN=`echo $nuage | cut -d"-" -f1` + echo Upating $SUBDOMAIN $NS ... + export APP=${SUBDOMAIN}-${NS} + cd $NS/$SUBDOMAIN + libre update --batch + cd - +done -- GitLab