diff --git a/libre b/libre index a317894bc019cf1a91d6ed3a6cd69430439a5cdd..4a059e7c72f458cd4f37c4422cf9b520db9129b2 100755 --- a/libre +++ b/libre @@ -10,8 +10,6 @@ export NUAGE_URL=`kubectl -n $NS get ing -o custom-columns=HOST:spec.rules[*].ho export BUCKET=${FQDN} export S3_ENDPOINT=hot-objects.liiib.re export S3_ENDPOINT_COLD=https://cold-objects.liiib.re -export REPLICAS="${REPLICAS:-2}" - export S3_SECRET=${NS}-dumps for key in `kubectl -n ${NS} get secrets ${S3_SECRET} -o json | jq -r '.data | keys | .[]'`; do @@ -38,6 +36,7 @@ export VERSION=stable source ./.env #cat ./version.php | grep 'array(' | cut -d\( -f2 | cut -d\) -f1 | sed 's/,/\./g' if [ "${APP}" = "nextcloud" ]; then + export REPLICAS="${REPLICAS:-2}" if [ "${VERSION}" = "alpha" ]; then export NC_VERSION=22.2.5.1 export NC_IMAGE_TAG=22.2.5-2022-03-08 @@ -51,6 +50,8 @@ if [ "${APP}" = "nextcloud" ]; then export NC_IMAGE_TAG=21.0.9-2022-03-23 export NC_WEB_IMAGE_TAG=21.0.9-2022-03-23 fi +elif [ "${APP}" = "rocketchat" ]; then + export REPLICAS="${REPLICAS:-1}" fi create_update_job_nc () {