diff --git a/templates/nextcloud-config.yaml b/templates/nextcloud-config.yaml index a96f6dea8028216a991d1ab3523f93389a3d2a20..c287b1739e972864b686513c264ec6400cd991d3 100644 --- a/templates/nextcloud-config.yaml +++ b/templates/nextcloud-config.yaml @@ -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.