Commit 4b100bc5 authored by Maarten de Waard's avatar Maarten de Waard

use absolute path to occ script

parent 8252bb4e
......@@ -37,28 +37,29 @@ 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/
cd /var/www/html
{{- range .Values.apps }}
# -- Begin {{ .name }}
# Only install {{ .name }} if it's not installed already
if ! php occ app:list | grep -q {{ .name }}; then
php occ app:install {{ .name }} --keep-disabled --no-interaction
if ! php /var/www/html/occ app:list | grep -q {{ .name }}; then
php /var/www/html/occ app:install {{ .name }} --keep-disabled --no-interaction
fi
{{- if .enabled }}
# Enable {{ .name }} app
php occ app:enable {{ .name }}
php /var/www/html/occ app:enable {{ .name }}
{{ end }} # -- end {{ .name }}
{{ end }} # end range {{ .Values.apps }}
# Config settings from the configmap above
php occ config:import /var/local/onlyoffice-config.json
php occ config:import /var/local/social-login-config.json
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
#
# All values in config.json are applied by the nextcloud occ command
# config:import.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment