mirror of
https://github.com/bitnami/charts.git
synced 2026-08-10 14:15:55 +08:00
[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:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user