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:
@@ -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}"
|
||||
|
||||
Reference in New Issue
Block a user