diff --git a/update.sh b/update.sh index 36d518d..1985d5a 100644 --- a/update.sh +++ b/update.sh @@ -65,7 +65,15 @@ for d in "${dirs[@]}"; do continue fi - strategy="$(detect_strategy "$d")" + strategy="$(detect_strategy "$d")" + + # Immer zuerst pullen (auch bei build) + echo "==== $d: pull ====" + if ! (cd "$d" && COMPOSE pull); then + echo "WARN: $d -> pull fehlgeschlagen" + overall_rc=1 + # trotzdem später versuchen zu starten + fi case "$strategy" in build) @@ -76,13 +84,7 @@ for d in "${dirs[@]}"; do continue fi ;; - pull|*) - echo "==== $d: pull ====" - if ! (cd "$d" && COMPOSE pull); then - echo "WARN: $d -> pull fehlgeschlagen" - overall_rc=1 - # trotzdem versuchen zu starten - fi + *) echo "==== $d: up -d ====" if ! (cd "$d" && COMPOSE up -d); then echo "WARN: $d -> up -d fehlgeschlagen"