cd to /var/www/html directory at the right place in the script

parent c44bca6e
...@@ -42,6 +42,8 @@ data: ...@@ -42,6 +42,8 @@ data:
# Debug: place the json file in a persistent location for reuse # Debug: place the json file in a persistent location for reuse
cp /var/local/onlyoffice-config.json /var/www/html/ cp /var/local/onlyoffice-config.json /var/www/html/
cp /var/local/social-login-config.json /var/www/html/ cp /var/local/social-login-config.json /var/www/html/
cd /var/www/html
{{- range .Values.apps }} {{- range .Values.apps }}
# -- Begin {{ .name }} # -- Begin {{ .name }}
# Only install {{ .name }} if it's not installed already # Only install {{ .name }} if it's not installed already
...@@ -50,7 +52,6 @@ data: ...@@ -50,7 +52,6 @@ data:
fi fi
{{- if .enabled }} {{- if .enabled }}
# Enable {{ .name }} app # Enable {{ .name }} app
cd /var/www/html
php occ app:enable {{ .name }} php occ app:enable {{ .name }}
{{ end }} # -- end {{ .name }} {{ end }} # -- end {{ .name }}
{{ end }} # end range {{ .Values.apps }} {{ end }} # end range {{ .Values.apps }}
......
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