3
0
forked from jakub/ansible

add immich 3

This commit is contained in:
martin.fencl
2025-12-16 11:16:13 +01:00
parent f61addc2be
commit e4dac7808b

View File

@@ -193,11 +193,8 @@
- |
cd {{ immich_dir }}
# Docker Engine <25 may not support healthcheck.start_interval; comment it out if present
server_major="$({{ docker_prefix }} version --format '{% raw %}{{.Server.Version}}{% endraw %}' 2>/dev/null | cut -d. -f1 || echo 0)"
if [ "${server_major:-0}" -lt 25 ]; then
sed -i -E 's/^([[:space:]]*)start_interval:/\1# start_interval:/' docker-compose.yml || true
fi
# Comment out healthcheck.start_interval if present (safe no-op if missing)
sed -i -E 's/^([[:space:]]*)start_interval:/\1# start_interval:/' docker-compose.yml || true
- "cd {{ immich_dir }} && {{ immich_compose_cmd }} config >/dev/null"
- "cd {{ immich_dir }} && {{ immich_compose_cmd }} pull >/dev/null"