[bitnami/apache] Allow to move hidden directories (#8210)

Signed-off-by: Miguel A. Cabrera Minagorri <mcabrera@vmware.com>
This commit is contained in:
Miguel Ángel Cabrera Miñagorri
2021-11-24 09:56:53 +01:00
committed by GitHub
parent e8697b5c1f
commit 1136b1d85c
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -26,4 +26,4 @@ name: apache
sources: sources:
- https://github.com/bitnami/bitnami-docker-apache - https://github.com/bitnami/bitnami-docker-apache
- https://httpd.apache.org - https://httpd.apache.org
version: 8.9.5 version: 8.9.6
+2
View File
@@ -62,6 +62,8 @@ spec:
- /bin/bash - /bin/bash
- -ec - -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" [[ -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 git clone {{ .Values.cloneHtdocsFromGit.repository }} --branch {{ .Values.cloneHtdocsFromGit.branch }} /tmp/repo
[[ "$?" -eq 0 ]] && rm -rf /app/* && mv /tmp/repo/* /app/ [[ "$?" -eq 0 ]] && rm -rf /app/* && mv /tmp/repo/* /app/