#!/bin/bash # Script de test de progression pour BlindBit # Vérifier si le processus BlindBit est en cours d'exécution if pgrep main > /dev/null 2>/dev/null; then # Vérifier l'API - essais multiples et deux hôtes (127.0.0.1 et 0.0.0.0) for i in 1 2 3; do if wget -q --spider http://127.0.0.1:8000/tweaks/1 2>/dev/null || wget -q --spider http://0.0.0.0:8000/tweaks/1 2>/dev/null; then echo 'BlindBit ready: Oracle service responding' exit 0 fi sleep 2 done echo 'BlindBit starting: Oracle service initializing' exit 1 else echo 'BlindBit starting: Process not ready' exit 1 fi