Skip to content

Commit 8075896

Browse files
committed
fix: directory allready exists
1 parent cb17ce9 commit 8075896

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

chart/templates/initWebsiteDir.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,10 @@ spec:
4848
args:
4949
- -c
5050
- >-
51-
mkdir -p $(WEBSITE_DIRS); chown -R $(OWNERSHIP) $(WEBSITE_DIRS);
51+
if [! -d $(WEBSITE_DIRS) ]; then
52+
mkdir -p $(WEBSITE_DIRS);
53+
chown -R $(OWNERSHIP) $(WEBSITE_DIRS);
54+
endif
5255
nodeSelector:
5356
{{- with .Values.nodeSelector }}
5457
{{- toYaml . | nindent 8 }}
@@ -59,4 +62,4 @@ spec:
5962
server: {{ .Values.volumes.type.nfs.server }}
6063
path: {{ .Values.volumes.type.nfs.path }}
6164
{{- end }}
62-
{{- end }}
65+
{{- end }}

0 commit comments

Comments
 (0)