Fix docker compose ps command usage across scripts

Replace deprecated `docker compose ps | grep` patterns with the more reliable `docker compose ps --status running --services | grep` command. This ensures consistent container status checking across backup, restore, and update scripts.

Also fix regex pattern in update.sh for French "oui" validation.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
BeauTroll
2025-12-17 05:51:12 +01:00
parent eff651e720
commit 9ad3cbe0d7
3 changed files with 7 additions and 5 deletions

View File

@@ -270,7 +270,7 @@ log "Attente du démarrage complet..."
sleep 10
MAX_TRIES=30
COUNTER=0
until docker compose ps | grep -q 'gitea.*running'; do
until docker compose ps --status running --services | grep -q '^gitea$'; do
COUNTER=$((COUNTER + 1))
if [ $COUNTER -gt $MAX_TRIES ]; then
log "${YELLOW}Avertissement: Gitea met du temps à démarrer${NC}"