Skip to content
Snippets Groups Projects
Commit 252b8296 authored by Varac's avatar Varac
Browse files

Merge branch '1015-update-to-nc-23' into 'main'

Fix NC app updates, run maintenance tasks

Closes #1015

See merge request !139
parents 37243b07 9954da5c
No related branches found
No related tags found
1 merge request!139Fix NC app updates, run maintenance tasks
Pipeline #12691 passed with stages
in 42 seconds
## [0.7.16] - 2022-03-24
* Add maintenance tasks and app updated to post-install/-upgrade helm hook
## [0.7.0] - 2022-02-22
* Replace ONLYOFFICE's postgresql database by mariadb. When upgrading, please
......@@ -10,7 +14,7 @@
## [0.5.3] - 2021-12-01
* Chart is now available on via helm repository:
https://open.greenhost.net/api/v4/projects/1/packages/helm/stable
<https://open.greenhost.net/api/v4/projects/1/packages/helm/stable>
## [0.5.2] - 2021-11-03
......@@ -44,10 +48,10 @@
* Replace pod probes by exec ones to actually check healthcheck status
* Update NC chart to 2.9.0
- This in turn updates the mariadb dependency chart from 7.10 to 9.6, which
* This in turn updates the mariadb dependency chart from 7.10 to 9.6, which
brings along some changes to helm value names: see [their upgrade
notes](https://github.com/bitnami/charts/tree/master/bitnami/mariadb/#to-800).
- Also, this requires Helm version 3.7 or higher to install (or upgrade).
* Also, this requires Helm version 3.7 or higher to install (or upgrade).
## [0.3.3] - 2021-09-02
......
......@@ -3,8 +3,8 @@ apiVersion: v2
description: |
A helm chart for installing NextCloud and setting up ONLYOFFICE integration
name: nextcloud-onlyoffice
version: 0.7.15
appVersion: NC-20.0.11-OO-6.2.2.21
version: 0.7.16
appVersion: NC-23.0.2-OO-7.0.1.37
icon: https://cdn.rawgit.com/docker-library/docs/defa5ffc7123177acd60ddef6e16bddf694cc35f/nextcloud/logo.svg
dependencies:
# https://artifacthub.io/packages/helm/nextcloud/nextcloud
......
......@@ -28,12 +28,34 @@ data:
}
setup-apps.sh: |
#!/bin/bash
#
# This script gets executed by a post-install,post-upgrade helm hook, which
#
# * Persists and loads the onlyoffice-config.json config file
# * Runs upgrade routines after installation of a new release.
# * Updates all applications
# * Installs all apps declared in the `apps` helm values array
# * Configures single-sign-on
# * Updates database indices, columns, keys, etc needed after NC upgrade
set -ev
# Debug: place the json file in a persistent location for reuse
cp /var/local/onlyoffice-config.json /var/www/html/
occ="/var/www/html/occ"
# Enable app store so we can run `install` and `enable` commands
php $occ config:system:set appstoreenabled --type boolean --value true
# Update all apps to their latest version, so they are compatible
# with the new NC version.
# Unfortunatly the occ app:install cmd doesn't allow to pin apps to
# a certain version.
php $occ app:update --all --no-interaction
# Install all apps declared in the `apps` helm values array
{{- range .Values.apps }}
# -- Begin {{ .name }}
# Only install {{ .name }} if it's not installed already
......@@ -51,8 +73,16 @@ data:
php $occ config:app:set sociallogin custom_providers --value='{"custom_oidc": [{{ .Values.sociallogin.custom_oidc | toJson }}]}'
php $occ config:app:set sociallogin auto_create_groups --value='{{ .Values.sociallogin.auto_create_groups }}'
php $occ config:app:set sociallogin update_profile_on_login --value='{{ .Values.sociallogin.update_profile_on_login }}'
# Disable app store again
php $occ config:system:set appstoreenabled --type boolean --value false
# Update database indices, columns, keys, etc needed after NC upgrade
php $occ db:add-missing-indices --no-interaction
php $occ db:add-missing-columns --no-interaction
php $occ db:add-missing-primary-keys --no-interaction
php $occ db:convert-filecache-bigint --no-interaction
#
# All values in config.json are applied by the nextcloud occ command
# config:import.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment