From 8252bb4e8e66af11fe0f0c0c0314357468c7f5a7 Mon Sep 17 00:00:00 2001 From: Maarten de Waard <maarten@greenhost.nl> Date: Wed, 25 Mar 2020 13:43:29 +0100 Subject: [PATCH] cd to /var/www/html directory at the right place in the script --- templates/nextcloud-config.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/templates/nextcloud-config.yaml b/templates/nextcloud-config.yaml index 2872413a..85df2bf6 100644 --- a/templates/nextcloud-config.yaml +++ b/templates/nextcloud-config.yaml @@ -42,6 +42,8 @@ data: # 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 @@ -50,7 +52,6 @@ data: fi {{- if .enabled }} # Enable {{ .name }} app - cd /var/www/html php occ app:enable {{ .name }} {{ end }} # -- end {{ .name }} {{ end }} # end range {{ .Values.apps }} -- GitLab