Files
chart/library/ix-dev/community/immich/templates/_waitURL.tpl
Stavros kois 2dc5408361 fix urls
2023-11-21 18:56:28 +02:00

18 lines
425 B
Smarty

{{- define "immich.wait.init" -}}
{{- $url := .url }}
wait-url:
enabled: true
type: init
imageSelector: bashImage
command:
- /bin/ash
- -c
- |
echo "Pinging [{{ $url }}] until it is ready..."
until wget --spider --quiet --timeout=3 --tries=1 "{{ $url }}"; do
echo "Waiting for [{{ $url }}] to be ready..."
sleep 2
done
echo "URL [{{ $url }}] is ready!"
{{- end -}}