mirror of
https://github.com/bitnami/charts.git
synced 2026-08-10 14:15:55 +08:00
[bitnami/apache] Allow to move hidden directories (#8210)
Signed-off-by: Miguel A. Cabrera Minagorri <mcabrera@vmware.com>
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.5
|
||||
version: 8.9.6
|
||||
|
||||
@@ -62,6 +62,8 @@ spec:
|
||||
- /bin/bash
|
||||
- -ec
|
||||
- |
|
||||
# Allow the mv to move hidden directories
|
||||
shopt -s dotglob
|
||||
[[ -f "/opt/bitnami/scripts/git/entrypoint.sh" ]] && source "/opt/bitnami/scripts/git/entrypoint.sh"
|
||||
git clone {{ .Values.cloneHtdocsFromGit.repository }} --branch {{ .Values.cloneHtdocsFromGit.branch }} /tmp/repo
|
||||
[[ "$?" -eq 0 ]] && rm -rf /app/* && mv /tmp/repo/* /app/
|
||||
|
||||
Reference in New Issue
Block a user