fix(mycloud-nextcloud): add update of apps on startup

This commit is contained in:
WrenIX 2024-01-18 22:35:58 +01:00
parent dc9cd83f52
commit b5d3256183
Signed by: wrenix
GPG key ID: 7AFDB012974B1BB5

View file

@ -25,6 +25,7 @@ spec:
values:
{{- $host := .Values.ingress.host | default (printf "fs.%s" .Values.commons.ingress.domain) }}
nextcloud:
update: true
username: nextcloud-admin
password: {{ .Values.adminPassword | default (derivePassword 1 "long" .Values.commons.masterPassword "nextcloud" "admin_password") | quote }}
host: {{ $host }}
@ -120,11 +121,14 @@ spec:
# https://codeberg.org/wrenix/flux-charts/issues/7
shell: |-
#!/bin/sh
echo "setup theming":
echo "update all apps:";
/var/www/html/occ app:update --all;
echo "setup theming:";
/var/www/html/occ theming:config disable-user-theming yes;
/var/www/html/occ theming:config name "{{ .Values.commons.theme.title }}";
echo "setup oidc";
echo "setup oidc:";
/var/www/html/occ user_oidc:provider mycloud \
--clientid {{ .Values.auth.clientID | default (derivePassword 1 "long" .Values.commons.masterPassword "nextcloud" "auth.clientID") | squote }} \
--clientsecret {{ .Values.auth.clientSecret | default (derivePassword 1 "long" .Values.commons.masterPassword "nextcloud" "auth.clientSecret") | squote }} \