[bitnami/apache] Fix clone htdocs when restart (#7970)

* [bitnami/apache] Fix clone htdocs when restart

* Remove only /app content

* Use wildcard to move files
This commit is contained in:
Miguel Ángel Cabrera Miñagorri
2021-11-11 14:54:07 +01:00
committed by GitHub
parent 951c248cf8
commit df4fe38f53
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -26,4 +26,4 @@ name: apache
sources:
- https://github.com/bitnami/bitnami-docker-apache
- https://httpd.apache.org
version: 8.9.1
version: 8.9.2
+2 -1
View File
@@ -63,7 +63,8 @@ spec:
- -ec
- |
[[ -f "/opt/bitnami/scripts/git/entrypoint.sh" ]] && source "/opt/bitnami/scripts/git/entrypoint.sh"
git clone {{ .Values.cloneHtdocsFromGit.repository }} --branch {{ .Values.cloneHtdocsFromGit.branch }} /app
git clone {{ .Values.cloneHtdocsFromGit.repository }} --branch {{ .Values.cloneHtdocsFromGit.branch }} /tmp/repo
[[ "$?" -eq 0 ]] && rm -rf /app/* && mv /tmp/repo/* /app/
resources: {{- toYaml .Values.cloneHtdocsFromGit.resources | nindent 12 }}
volumeMounts:
- name: htdocs