forked from jakub/ansible
add immich 3
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user