From 4ef9a3ec3587d0ac61783dae3aa1a846b5797463 Mon Sep 17 00:00:00 2001 From: Michael Kriese Date: Sun, 15 Aug 2021 20:43:51 +0800 Subject: [PATCH] fix: Only create conf directoy if not exists (#211) Only create conf directory if not yet exists fixes #210 Co-authored-by: Lunny Xiao Reviewed-on: https://gitea.com/gitea/helm-chart/pulls/211 Reviewed-by: luhahn Reviewed-by: justusbunsi Co-authored-by: Michael Kriese Co-committed-by: Michael Kriese --- templates/gitea/init.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/gitea/init.yaml b/templates/gitea/init.yaml index c77c2d2..231d841 100644 --- a/templates/gitea/init.yaml +++ b/templates/gitea/init.yaml @@ -26,7 +26,7 @@ stringData: {{- end }} mkdir -p /data/git/.ssh chmod -R 700 /data/git/.ssh - mkdir -p /data/gitea/conf + [ ! -d /data/gitea ] && mkdir -p /data/gitea/conf # prepare temp directory structure mkdir -p "${GITEA_TEMP}"