fix(mycloud-nextcloud): add db-indices on every startup + update apps before enable/install them

This commit is contained in:
WrenIX 2024-09-19 19:53:45 +02:00
parent 852a348250
commit f4bdeaadbb
Signed by: wrenix
GPG key ID: 7AFDB012974B1BB5

View file

@ -135,6 +135,9 @@ spec:
# https://codeberg.org/wrenix/flux-charts/issues/7 # https://codeberg.org/wrenix/flux-charts/issues/7
before-starting: |- before-starting: |-
#!/bin/sh #!/bin/sh
echo "update all apps:";
/var/www/html/occ app:update --all;
{{- $app := "user_oidc" }} {{- $app := "user_oidc" }}
echo "=== manage: {{ $app }} ===" echo "=== manage: {{ $app }} ==="
echo "--- install: {{ $app }} ---" echo "--- install: {{ $app }} ---"
@ -180,8 +183,8 @@ spec:
/var/www/html/occ config:app:set -n richdocuments wopi_url --value={{ get .Values.apps.richdocuments.config "wopi_url" | default (printf "https://collabora.%s" $.Values.commons.ingress.domain) | quote }} /var/www/html/occ config:app:set -n richdocuments wopi_url --value={{ get .Values.apps.richdocuments.config "wopi_url" | default (printf "https://collabora.%s" $.Values.commons.ingress.domain) | quote }}
{{- end }}{{/* end-else-if richdocuments.enable */}} {{- end }}{{/* end-else-if richdocuments.enable */}}
echo "update all apps:"; echo "refresh index:";
/var/www/html/occ app:update --all; /var/www/html/occ db:add-missing-indices;
echo "setup theming:"; echo "setup theming:";
/var/www/html/occ theming:config disable-user-theming yes; /var/www/html/occ theming:config disable-user-theming yes;