We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cb17ce9 commit 8075896Copy full SHA for 8075896
1 file changed
chart/templates/initWebsiteDir.yaml
@@ -48,7 +48,10 @@ spec:
48
args:
49
- -c
50
- >-
51
- mkdir -p $(WEBSITE_DIRS); chown -R $(OWNERSHIP) $(WEBSITE_DIRS);
+ if [! -d $(WEBSITE_DIRS) ]; then
52
+ mkdir -p $(WEBSITE_DIRS);
53
+ chown -R $(OWNERSHIP) $(WEBSITE_DIRS);
54
+ endif
55
nodeSelector:
56
{{- with .Values.nodeSelector }}
57
{{- toYaml . | nindent 8 }}
@@ -59,4 +62,4 @@ spec:
59
62
server: {{ .Values.volumes.type.nfs.server }}
60
63
path: {{ .Values.volumes.type.nfs.path }}
61
64
{{- end }}
-{{- end }}
65
+{{- end }}
0 commit comments