Skip to content
Snippets Groups Projects
Verified Commit 2a19b8c6 authored by Maarten de Waard's avatar Maarten de Waard :angel:
Browse files

remove debug LS and use dry $occ variable

parent aabf5711
No related branches found
No related tags found
1 merge request!21Resolve "Update nextcloud dependency charts to work with k8s 1.16"
......@@ -37,29 +37,26 @@ data:
}
setup-apps.sh: |
#!/bin/bash
# DEBUG PRINT
ls /var/www/html
set -ev
# Debug: place the json file in a persistent location for reuse
cp /var/local/onlyoffice-config.json /var/www/html/
cp /var/local/social-login-config.json /var/www/html/
occ="/var/www/html/occ"
{{- range .Values.apps }}
# -- Begin {{ .name }}
# Only install {{ .name }} if it's not installed already
if ! php /var/www/html/occ app:list | grep -q {{ .name }}; then
php /var/www/html/occ app:install {{ .name }} --keep-disabled --no-interaction
if ! php $occ app:list | grep -q {{ .name }}; then
php $occ app:install {{ .name }} --keep-disabled --no-interaction
fi
{{- if .enabled }}
# Enable {{ .name }} app
php /var/www/html/occ app:enable {{ .name }}
php $occ app:enable {{ .name }}
{{ end }} # -- end {{ .name }}
{{ end }} # end range {{ .Values.apps }}
# Config settings from the configmap above
php /var/www/html/occ config:import /var/local/onlyoffice-config.json
php /var/www/html/occ config:import /var/local/social-login-config.json
php $occ config:import /var/local/onlyoffice-config.json
php $occ config:import /var/local/social-login-config.json
#
# 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