#!/bin/bash # Verify Dolibarr echo "Waiting for Dolibarr to start..." sleep 60 echo "Pinging Dolibarr..." if curl -s http://172.31.0.2:80 | grep -q "Dolibarr"; then echo "Dolibarr verification successful." exit 0 else echo "Dolibarr verification failed." echo "Dolibarr is not responding as expected. Here is the verbose output from curl:" curl -v http://172.31.0.2:80 exit 1 fi