Commit 4feba5af authored by jacklull's avatar jacklull

add custom favicon support for wiki-js 2.5.305

parent abc8dce9
......@@ -40,6 +40,19 @@ spec:
{{- end }}
containers:
- name: {{ .Chart.Name }}
{{- if .Values.customFavicons.enabled }}
lifecycle:
postStart:
exec:
command:
- sh
- -c
- |
ls /wiki/assets && rm -rf /wiki/assets/favicons/* && rm -rf /wiki/assets/favicon.ico && \
curl -k -L {{ .Values.customFavicons.x192 }} -o /wiki/assets/favicons/android-chrome-192x192.png && \
curl -k -L {{ .Values.customFavicons.x32 }} -o /wiki/assets/favicons/favicon-32x32.png && \
curl -k -L {{ .Values.customFavicons.favicon }} -o /wiki/assets/favicon.ico
{{- end }}
securityContext:
{{- toYaml .Values.securityContext | nindent 12 }}
image: "{{ .Values.image.repository }}:{{ default "latest" .Values.image.tag }}"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment